GNOME Bugzilla – Bug 644279
[patch] port watcher-x11 to GDBus
Last modified: 2013-01-16 17:32:00 UTC
This continues the work of moving gnome-screensaver to GDBus. This migrates the watcher implementation to use GDBus rather than dbus-glib.
Created attachment 182925 [details] [review] 0002-saver-port-watcher-to-GDBus.patch
I think it would be easier to use a GDBusProxy here instead of calling Properties.Get yourself, and listening to all those signals by hand. In the on_* callbacks, you do things like + g_variant_get (parameters, "(u)", &status); without first checking that the variant has, in fact, this signature. I think for safety you should check that.
Created attachment 183043 [details] [review] 0002-saver-port-watcher-to-GDBus.patch Yeah, good point about the safety. Updated the patch.
I think this is better all done at once. Going to dup the bug. *** This bug has been marked as a duplicate of bug 622880 ***