Re: how to set widget background?

2007-12-03 Thread Jim George
On Dec 3, 2007 3:57 AM, Guenther Meyer <[EMAIL PROTECTED]> wrote:
> hi,
>
> I have a hbox that looks like this:
>
> -
> |  ||
> |      |    |
> |      |    |
> |  ||
> -
>
>  is a gtkimage
>  is text in gtklabel
>
> how can I set the background color for the whole hbox?
> gtk_widget_modify_bg won't work.
>
> I need the color for the whole hbox. when I set the background of the text,
> only the background of the letters is drawn in the specified color...
>
Add a GtkEventBox, then add your hbox to the event box. Set the
background color for the event box.

-Jim
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


how to set widget background?

2007-12-03 Thread Guenther Meyer
hi,

I have a hbox that looks like this:

-
|  ||
|      |    |
|      |    |
|  ||
-

 is a gtkimage
 is text in gtklabel

how can I set the background color for the whole hbox?
gtk_widget_modify_bg won't work.

I need the color for the whole hbox. when I set the background of the text, 
only the background of the letters is drawn in the specified color...

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