Re: changing the bg of a widget



Luka Napotnik wrote:
Hello. I'm trying to change the background of a vbox but it doesn't
change. I call gtk_widget_modify_bg(window_main->box_main,
GTK_STATE_NORMAL, &bgColor) where bgColor is set to white. Why does this
not work? I have a GtkImage with an image in the vbox and that's all. If
I resize the window, the color is still the same.
Hi,
Add GtkVBox to the GtkEventBox and use gdk_widget_modify_bg() on GtkEventBox.

        Olexiy



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