From: compudj Date: Fri, 9 Jan 2004 19:56:15 +0000 (+0000) Subject: changed the viewer so it reads the main window new time_window when a configure event... X-Git-Tag: v0.12.20~3124 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=86c520a77c23676afa54edb83d5e85ad8a0bd570;p=lttv.git changed the viewer so it reads the main window new time_window when a configure event occurs git-svn-id: http://ltt.polymtl.ca/svn@365 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.c b/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.c index c92d4607..c472d7c6 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.c +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.c @@ -135,6 +135,15 @@ configure_event( GtkWidget *widget, GdkEventConfigure *event, { Drawing_t *Drawing = (Drawing_t*)user_data; + + /* First, get the new time interval of the main window */ + /* we assume (see documentation) that the main window + * has updated the time interval before this configure gets + * executed. + */ + get_time_window(Drawing->Control_Flow_Data->Parent_Window, + &Drawing->Control_Flow_Data->Time_Window); + /* New Pixmap, size of the configure event */ GdkPixmap *Pixmap = gdk_pixmap_new(widget->window, widget->allocation.width, @@ -208,8 +217,6 @@ g_critical("missing data"); // widget->allocation.height - // Drawing->height); - - Drawing->width = widget->allocation.width; Drawing->height = widget->allocation.height;