GSettings: fix check for delaying backend subscription
authorLars Uebernickel <lars.uebernickel@canonical.com>
Fri, 28 Nov 2014 12:06:04 +0000 (13:06 +0100)
committerLars Uebernickel <lars.uebernickel@canonical.com>
Fri, 28 Nov 2014 14:19:07 +0000 (15:19 +0100)
commitd511d6b37f051d2cd8698055cbd85ee7f987325d
tree93a38ac87e8b20d2952446e6a4a60f99f90a5213
parent7f2f4ab12df6ddb501900846896f496520871d16
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