Howto set colour?
- From: "Peter R. Brinkler" <riishigh daimi aau dk>
- To: GTKlist <gtk-list redhat com>
- Subject: Howto set colour?
- Date: Fri, 13 Aug 1999 16:22:05 +0200
I have a small problem:
I would like to set the colour of a DrawingArea (or any other widget for
I think I saw this on the mailing list some time ago, but I cannot find
it again ( the link to
the archive is incorrect ).
I have tried:
// This is ugly maybe there is a better way?
GdkColormap *CM = gtk_widget_get_colormap( _ColorButtonDA );
C.red = (gushort)( 65535 * color );
C.green = (gushort)( 65535 * color );
C.blue = (gushort)( 65535 * color );
gdk_color_change ( CM, &C );
Anyway I'd really appreciate any help.
] [Thread Prev