GtkDrawingArea background color

hi all,

i tried to to set the background color of a GtkDrawingArea
to red, but instead got a beautiful green...

. . .
GtkWidget* drawing_area;
GdkColor red;
. . .
if( !gdk_color_parse( "red", &red ) ) g_print( "error parsing color!\n"
gdk_window_set_background( drawing_area->window, &red );
. . .

what am i doing wrong?

Fabian Emmes

I live the way I type; fast, with a lot of mistakes.

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