current time in cfv more cute
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 17 Aug 2004 02:55:54 +0000 (02:55 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 17 Aug 2004 02:55:54 +0000 (02:55 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@798 04897980-b3bd-0310-b5e0-8ef037075253

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

index b31549d713946a4bbda1511d0836465d797a4567..b09853d31f1e93a279971cc5514d1843900a00b7 100644 (file)
@@ -598,7 +598,17 @@ expose_event( GtkWidget *widget, GdkEventExpose *event, gpointer user_data )
       event->area.x, event->area.y,
       event->area.x, event->area.y,
       event->area.width, event->area.height);
-  
+
+  /* Erase the dotted lines left.. */
+  if(widget->allocation.height > drawing->height)
+    gdk_draw_rectangle (widget->window,
+      drawing->drawing_area->style->black_gc,
+      TRUE,
+      event->area.x, drawing->height,
+      event->area.width,  // do not overlap
+      widget->allocation.height - drawing->height);
+
+
   if(ltt_time_compare(time_window.start_time, current_time) <= 0 &&
            ltt_time_compare(window_end, current_time) >= 0)
   {
@@ -626,10 +636,10 @@ expose_event( GtkWidget *widget, GdkEventExpose *event, gpointer user_data )
                         dash_list,
                         2);
     }
-
+    
     drawing_draw_line(NULL, widget->window,
                   cursor_x, 0,
-                  cursor_x, drawing->height,
+                  cursor_x, widget->allocation.height,
                   drawing->dotted_gc);
   }
   return FALSE;
This page took 0.025098 seconds and 4 git commands to generate.