Re: change colors



Hey,

I'm still not an expert in this but in GTK+2 one might do

GdkColor *yellow = { 0, 0xffff, 0xffff, 0x0000 };
gtk_widget_modify_bg(GTK_WIDGET(yourlabel), GTK_STATE_NORMAL, yellow);

Got this stuff from the Color Selecter in the gtk-demo application
coming with GTK+v2. Should make background yellow.. i think :)

Hope this helps,

Geert

On Mon, 2002-09-16 at 13:50, r palluk virgilio it wrote:
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
-- 
Geert Vanderkelen
Kemuri.Org
http://kemuri.org

Amazon.co.uk wishlist:
http://www.amazon.co.uk/exec/obidos/wishlist/175DEV9FWDUH5/ref=wl_em_to






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