line current : dash style
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 30 Jan 2004 13:15:08 +0000 (13:15 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 30 Jan 2004 13:15:08 +0000 (13:15 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@455 04897980-b3bd-0310-b5e0-8ef037075253

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

index 0a68304d96f13a56823d0dee0311ae6b65b96775..2c10cb020634116c63c03c690a2e16ad397d86b4 100644 (file)
@@ -324,6 +324,7 @@ expose_event( GtkWidget *widget, GdkEventExpose *event, gpointer user_data )
 
   if(x >= event->area.x && x <= event->area.x+event->area.width)
   {
+    gint8 dash_list[] = { 1, 2 };
     GdkGC *gc = gdk_gc_new(control_flow_data->drawing->pixmap);
     gdk_gc_copy(gc, widget->style->white_gc);
     gdk_gc_set_line_attributes(gc,
@@ -331,6 +332,10 @@ expose_event( GtkWidget *widget, GdkEventExpose *event, gpointer user_data )
                                GDK_LINE_ON_OFF_DASH,
                                GDK_CAP_BUTT,
                                GDK_JOIN_MITER);
+    gdk_gc_set_dashes(gc,
+                      0,
+                      dash_list,
+                      2);
     drawing_draw_line(NULL, widget->window,
                   x, event->area.y,
                   x, event->area.y+event->area.height,
This page took 0.02483 seconds and 4 git commands to generate.