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

Re: how to set widget background?



On Dec 3, 2007 3:57 AM, Guenther Meyer <d s e sordidmusic com> wrote:
> hi,
>
> I have a hbox that looks like this:
>
> ---------------------------------
> |          |                    |
> |   ****   |  tttttttttttttttt  |
> |   ****   |  tttttttt          |
> |          |                    |
> ---------------------------------
>
> **** is a gtkimage
> tttt 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


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