![]() |
2010-08-23
, 09:10
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#2
|
![]() |
2010-08-23
, 11:09
|
|
Posts: 549 |
Thanked: 299 times |
Joined on Jun 2010
@ Australian in the Philippines
|
#3
|
![]() |
2010-08-23
, 11:20
|
|
Posts: 1,296 |
Thanked: 1,773 times |
Joined on Aug 2009
@ Budapest, Hungary
|
#4
|
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 ?
![]() |
2010-08-23
, 12:29
|
Posts: 187 |
Thanked: 41 times |
Joined on May 2010
|
#5
|
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.
![]() |
2010-08-23
, 12:36
|
|
Posts: 1,296 |
Thanked: 1,773 times |
Joined on Aug 2009
@ Budapest, Hungary
|
#6
|
Any examples in Python ?
I am changing the sms_counter plugin ... and i am using EOP (Example oriented programming :P)
btw, how can i get which signal/events are available ?