Re: Background color of HBox, Label or Table



The reason that it doesn't work is that hbox, tables, and labels do
not have any corresponding x window associated with them. The solution
is to embed them within an Gtk2::EventBox. You may then change the 
background of the eventbox.

Regards,
Dov

On Sun, Aug 22, 2004 at 07:52:54PM +0200, Jens Wilke wrote:
Hi,

i tried to change the background color of a HBox, Table or Label, this 
does not work. Changing the Color of a Window or Button works like 
this: $widget->modify_bg('normal', Gtk2::Gdk::Color->new (0,0,0));
what might be wrong?
I need this for the background of an image viewer, hope this is a honest 
reason...

Rgds, Jens

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



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