X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2FguiControlFlow%2FDraw_Item.c;h=c73aee01c26dadb26e7a64e8f081382d1ecb91f9;hb=8b90e6486401fa3388e550e0f3d55a3d70f4d0bf;hp=f86edea791aad6ea827c956ffef20dc23cc5b53f;hpb=e8814eec2e5ba7e735892c3a7d03ff1872f9a0d2;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c b/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c index f86edea7..c73aee01 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c @@ -235,8 +235,11 @@ gboolean draw_line( void *hook_data, void *call_data) { PropertiesLine *Properties = (PropertiesLine*)hook_data; DrawContext *Draw_Context = (DrawContext*)call_data; - - gdk_gc_set_foreground(Draw_Context->gc, Properties->color); + //GdkGC *gc = gdk_gc_new(Draw_Context->drawable); + + //gdk_gc_set_foreground(Draw_Context->gc, Properties->color); + gdk_gc_set_rgb_fg_color(Draw_Context->gc, Properties->color); + //gdk_gc_set_foreground(gc, Properties->color); gdk_gc_set_line_attributes( Draw_Context->gc, Properties->line_width, Properties->style, @@ -273,7 +276,9 @@ gboolean draw_line( void *hook_data, void *call_data) break; } - + + //gdk_gc_unref(gc); + return 0; } @@ -282,7 +287,8 @@ gboolean draw_arc( void *hook_data, void *call_data) PropertiesArc *Properties = (PropertiesArc*)hook_data; DrawContext *Draw_Context = (DrawContext*)call_data; - gdk_gc_set_foreground(Draw_Context->gc, Properties->color); + //gdk_gc_set_foreground(Draw_Context->gc, Properties->color); + gdk_gc_set_rgb_fg_color(Draw_Context->gc, Properties->color); switch(Properties->position) { case OVER: @@ -322,7 +328,8 @@ gboolean draw_bg( void *hook_data, void *call_data) PropertiesBG *Properties = (PropertiesBG*)hook_data; DrawContext *Draw_Context = (DrawContext*)call_data; - gdk_gc_set_foreground(Draw_Context->gc, Properties->color); + //gdk_gc_set_foreground(Draw_Context->gc, Properties->color); + gdk_gc_set_rgb_fg_color(Draw_Context->gc, Properties->color); gdk_draw_rectangle(Draw_Context->drawable, Draw_Context->gc,