drawing colored lines



Hi all

I have been experimenting with GtkDrawingArea, drawing mathematical
functions. Can anyone tell me how to change the foreground color (to
red, say)? I want to do this in the program, not with the color chooser
widget. It's easy enough with Cairo but I can't figure out how to do it
with GDK. I've tried gdk_gc_set_rgb_fg_color () and can get it to
compile but the program then crashes.

thanks... James Bridge



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