change bg color of gtk_label
- From: Bernd Hornböck <bhornboeck grips com>
- To: GTK Application Development List <gtk-app-devel-list gnome org>
- Subject: change bg color of gtk_label
- Date: Mon, 05 Mar 2001 16:49:57 +0100
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]