Re: help with GtkStyles



>can anybody tell me if each widget has its own GtkStyle structure/object
>or do all the widgets in an app share the same? 

AFAIK, styles have names. all instances of the same-named style use a
single shared object.

>The reason I'm asking is that I've been doing some work in php-gtk (Gtk+
>bindings for php) and have come across the case where modifying the style
>of one widget (in this case a CList) also effects the others (a CTree and
>a GtkText) unless I specifically copy the GtkStyle, modify the copy
>and then change the widget's Style to be the new GtkStyle.

Yep, thats precisely it. I think :)

--p




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