change bg color of gtk_label



hi there,


I didn't find out how to change the background color
of a GtkLabel.

I tried the following code:

GdkColor tempcol;
 tempcol.red = 0;
 tempcol.green = 65000;
 tempcol.blue = 0;

GdkColormap* tempcolmap = gdk_colormap_get_system ();
 tempcolmap->colors = &tempcol;

refreshDisplay = (GtkLabel*) glade_xml_get_widget (GladeP1->xmlfile, "label20");
 gtk_widget_set_colormap ( GTK_WIDGET (refreshDisplay), tempcolmap );



Any hints ?


Thanks in advance,

Bernd




--
In a world without walls and fences, who needs windows and gates ?





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