From 853dbdb87b29aecd6d1130116efc1760e5c09a7d Mon Sep 17 00:00:00 2001 From: compudj Date: Fri, 30 Jan 2004 13:15:08 +0000 Subject: [PATCH] line current : dash style git-svn-id: http://ltt.polymtl.ca/svn@455 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c index 0a68304d..2c10cb02 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c @@ -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, -- 2.34.1