Re: [gtk-list] Re: [Q] gtk_widget_set_style



Tero Pulkkinen <terop@students.cc.tut.fi> writes:

> I'm not sure exactly how the style stuffs work, but by default I'd guess the
> get_style() function returns a ptr to a statically allocated "default"
> style and changing that will cause every widget in your app have that change.
> 
> Thus, you should make a new style with gtk_style_new() and copy the default
> style to that and then set the new style to the widget.
> 
> Just a guess :)

	A good guess indeed :-)



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