{
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,
break;
}
-
+
+ //gdk_gc_unref(gc);
+
return 0;
}
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:
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,