changed the viewer so it reads the main window new time_window when a configure event...
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 9 Jan 2004 19:56:15 +0000 (19:56 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 9 Jan 2004 19:56:15 +0000 (19:56 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@365 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.c

index c92d4607cf07666d649b682929bebd11239fcef4..c472d7c60c74c0f867f5c52f15ec7a862d3f685a 100644 (file)
@@ -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;
 
This page took 0.024929 seconds and 4 git commands to generate.