RE: change colors



I think that GtkLabels don't have their own window, and therefore can't
receive background color changes.  To change the bg color of a label itself,
you have to pack it into something else--event boxes work well.

-----Original Message-----
From: gtk-app-devel-list-admin gnome org
[mailto:gtk-app-devel-list-admin gnome org]On Behalf Of
r palluk virgilio it
Sent: Monday, September 16, 2002 7:50 AM
To: gtk-app-devel-list gnome org
Subject: change colors


i need to change the background of a gtk_label and i have try to use
gdk_colormap
but when i start the program i have always segment fault. than i tryed to
create a event_box under the label and i have used the gtk_color_purge...
is ok but i don'n understand what i need to put in the arguments to obtain
an RGB color...
next... i can put in the gtk_event_box an image in the background??

thanks....

Roberto

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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