Re: Handle an icon theme switch



On Wed, 2008-02-20 at 19:37 +0100, Matteo Landi wrote:
> Hi all
> in an app i'm developing, i ve to be noticed if the icon theme is
> changed in order to reload all the images!

> I thought about a function executed every second which check if the
> current default theme is equal to the old one.

eek.

no need to do that. just connect to the ::changed signal of
GtkIconTheme. you'll get notification when the default icon theme has
been changed, and you can reload the icons from the callback attached to
that signal.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net



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