Re: [gtk-list] Re: changing a widget's background



I tried the code and it does what i want; but only if the widget has not
been realized.

How can I get the same behavior after a widget has been realized ?

thanks

-re

Owen Taylor wrote:
> 
> A quick example of using would be:
> 
> ===
> GtkRcStyle *rc_style = gtk_rc_style_new();
> 
> rc_style->color_flags[GTK_STATE_NORMAL] |= GTK_RC_FG;
> rc_style->fg[GTK_STATE_NORMAL].red = 0xffff;
> rc_style->fg[GTK_STATE_NORMAL].green = 0;
> rc_style->fg[GTK_STATE_NORMAL].blue = 0;
> 
> gtk_widget_modify_style (widget, rc_style);
> ===
> 
> Regards,
>                                         Owen



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