View Single Post
Venemo's Avatar
Posts: 1,296 | Thanked: 1,773 times | Joined on Aug 2009 @ Budapest, Hungary
#4
Originally Posted by colchaodemola View Post
Hi guys , is there an event i can listen to make my widget update on desktop switching ?

btw, how can i get which signal/events are available ?
YES, you can set up a gconf monitor.
You can specify a callback method, and it will call you back when the actual desktop has been changed.

You can checkout Sticky Notes to see how.

The actual relevant code is in this file. (Added to Sticky Notes via svn:externals.)

If you have questions about it, just ask.

Note that there is also a Qt-based gconf client in libqg. (Part of MAFW), though I preferred to use gconf directly.