GSettings: fix check for delaying backend subscription
authorLars Uebernickel <lars.uebernickel@canonical.com>
Fri, 28 Nov 2014 12:06:04 +0000 (13:06 +0100)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Fri, 10 Jul 2015 09:47:42 +0000 (11:47 +0200)
commitd9ad40b4eaf1a9197ab363de4346a8d84f45f5c1
tree3aea23d2de3cc3e2e367726a828f7174707f164a
parent7fd6f07d498063470903a886b4805a13bd333908
GSettings: fix check for delaying backend subscription

g_settings_has_signal_handlers() checks whether any of the signals has
pending handlers. However, g_signal_has_handler_pending() matches on
exact detail, even when passing 0. Subscribing to one of GSettings'
signals with a detail will fail this check and never connect to the
backend.

Fix this by calling has_handler_pending() with the key as detail as
well.

https://bugzilla.gnome.org/show_bug.cgi?id=740848
gio/gsettings.c