From 86c520a77c23676afa54edb83d5e85ad8a0bd570 Mon Sep 17 00:00:00 2001 From: compudj Date: Fri, 9 Jan 2004 19:56:15 +0000 Subject: [PATCH] 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 --- .../poly/lttv/modules/guiControlFlow/Drawing.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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; -- 2.34.1