GNOME Bugzilla – Bug 706858
Fix up get/set_property vfuncs for GDBus
Last modified: 2013-08-27 11:38:01 UTC
GDBus asserts that a get_property implementation sets an error if it returns NULL, and that a set_property implementation sets and error if it returns FALSE. The power plugin was very far from this requirement, and I have seen crashes of gnome-settings-daemon due to this, when trying to set screen brightness in a VM.
Created attachment 253211 [details] [review] Fix up get/set_property vfuncs for GDBus
Review of attachment 253211 [details] [review]: ::: plugins/power/gsd-power-manager.c @@ +3829,2 @@ } else { g_warning ("not recognised interface: %s", interface_name); You forgot this one.
Created attachment 253236 [details] [review] Fix up get/set_property vfuncs for GDBus GDBus asserts that a get_property implementation sets an error if it returns NULL, and that a set_property implementation sets and error if it returns FALSE. The power plugin was very far from this requirement, and I have seen crashes of gnome-settings-daemon due to this, when trying to set screen brightness in a VM.
Agreed, colord had the same bug a few months ago. With Jaspers fix, looks good for me. Thanks.
Attachment 253211 [details] pushed as a8917af - Fix up get/set_property vfuncs for GDBus Attachment 253236 [details] pushed as a8917af - Fix up get/set_property vfuncs for GDBus