Color problems
- From: Stefan Jeske <jeske braunschweig netsurf de>
- To: gtk-list redhat com
- Subject: Color problems
- Date: Wed, 12 Nov 1997 18:40:32 +0100 (MET)
Hi !
I have chosen a color with the color selection dialog, and now
I want to set the background of a list box to that color. But how ?
I have 3 RGB values r, g and b, and if I try
GdkColor color;
color.red = r * 65535.0;
color.green = g * 65535.0;
color.blue = b * 65535.0;
gdk_color_alloc (gtk_widget_get_colormap (mainwin), &color);
gdk_window_set_background (my_list_box->window, &color);
nothing happens. What's wrong ?
I guess I need a fundamental introduction to colors, colormaps etc. ... ;)
Ciao,
Stefan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]