Havoc Pennington wrote:
> I don't think gtk_widget_modify_bg() requires
> allocating the color...
I eventually got my test program running fine,
see my reply to Sven.
> In general with GTK 2 allocating/freeing
> colors should never be necessary,
> gdk_rgb_find_color() and
> gdk_gc_set_fg_c
Havoc Pennington wrote:
> I don't think gtk_widget_modify_bg() requires
> allocating the color...
I eventually got my test program running fine,
see my reply to Sven.
> In general with GTK 2 allocating/freeing
> colors should never be necessary,
> gdk_rgb_find_color() and
> gdk_gc_set_fg_c
Sven Neumann wrote:
> The red, green, blue fields of the GdkColor
> struct use 16 bit, so you
> will want to use a range from 0 to 1<<16.
> This will however not suffice since you need
> to allocate the color before it can be used.
> If you really want to play with colors,
> you should read...