GtkDrawable colors and lines...



Hi all!!

I have a drawable in a window and I want to set foreground
drawing color. But this doesn't work for me.

I'm doing a 

gc = drawing_area->style->fg_gc[GTK_WIDGET_STATE(drawing_area)];

gdk_gc_set_rgb_fg_color(gc,&red);

gdk_draw_line(drawing_area->window,gc,
        0,0,10,10);

but it appears in black color.
Note: Before drawing this line a gdkpixbuf (from a gif) is
drawn with full colors...

What I'm doing wrong?

Thanks in advance




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]