Re: Notification of theme change



"Padraig O'Briain" <Padraig Obriain Sun COM> writes:

> Is it possible for a widget to get notification of theme change?

Widgets are notified when widget->style changes with the ::style-set
signal. This is the effect of a theme change that a widget
almost always cares about; GTK+ internally doesn't really
have an idea of a "theme"; different widgets can have different
theme engines and styles.

If you want to find out if the theme name setting changes, 
you can  listen to notify::gtk-theme-name on the GtkSettings, but I
don't know of any valid reason to do that.

Regards,
                                        Owen




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