set size request fixed
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 19 Aug 2004 06:28:15 +0000 (06:28 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 19 Aug 2004 06:28:15 +0000 (06:28 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@820 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c
ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c

index 9939a7ca20f613363a7dac387c76b0b82c305fb2..987e340918e8d1754bd675dd0e79ad6327aee6ab 100644 (file)
@@ -660,7 +660,7 @@ expose_event( GtkWidget *widget, GdkEventExpose *event, gpointer user_data )
     
     gdk_draw_line(widget->window,
                   drawing->dotted_gc,
-                  cursor_x, 0,
+                  cursor_x, event->area.y,
                   cursor_x, widget->allocation.height);
   }
   return FALSE;
index 03c1f6e9be95df0c93ab87f362e996a9c9e8c0bf..4e0c7d65ad06ccf1f84e780ae3f1b426e795f831 100644 (file)
@@ -149,6 +149,9 @@ gint background_ready(void *hook_data, void *call_data)
 
     drawing_clear(control_flow_data->drawing);
     processlist_clear(control_flow_data->process_list);
+    gtk_widget_set_size_request(
+      control_flow_data->drawing->drawing_area,
+                -1, processlist_get_height(control_flow_data->process_list));
     redraw_notify(control_flow_data, NULL);
   }
 
@@ -2870,6 +2873,9 @@ gint traceset_notify(void *hook_data, void *call_data)
 
   drawing_clear(control_flow_data->drawing);
   processlist_clear(control_flow_data->process_list);
+  gtk_widget_set_size_request(
+      control_flow_data->drawing->drawing_area,
+                -1, processlist_get_height(control_flow_data->process_list));
   redraw_notify(control_flow_data, NULL);
 
   request_background_data(control_flow_data);
@@ -2889,7 +2895,9 @@ gint redraw_notify(void *hook_data, void *call_data)
   /* fun feature, to be separated someday... */
   drawing_clear(control_flow_data->drawing);
   processlist_clear(control_flow_data->process_list);
-
+  gtk_widget_set_size_request(
+      control_flow_data->drawing->drawing_area,
+                -1, processlist_get_height(control_flow_data->process_list));
   // Clear the images
   rectangle_pixmap (control_flow_data->process_list,
         widget->style->black_gc,
This page took 0.026786 seconds and 4 git commands to generate.