From: compudj Date: Thu, 19 Aug 2004 06:28:15 +0000 (+0000) Subject: set size request fixed X-Git-Tag: v0.12.20~2669 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=07390ec1d88c08859d7468fd412f7d55cac61ed8;p=lttv.git set size request fixed git-svn-id: http://ltt.polymtl.ca/svn@820 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c index 9939a7ca..987e3409 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c @@ -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; diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c index 03c1f6e9..4e0c7d65 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c @@ -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,