diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2014-11-30 11:01:00 -0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2014-11-30 11:02:02 -0800 |
commit | c84f4e0039353e3846afda132a53d96fcadc0715 (patch) | |
tree | 7f3a0333dc348891b788cbc779d6788dcbe35018 | |
parent | 59af03275af69096fa0e7b2d1ad4558b2aace178 (diff) | |
download | nautilus-c84f4e0039353e3846afda132a53d96fcadc0715.tar.gz |
application: use correct order to watch for GSettings changes
After a recent GLib change, we need to connect to the changed signal
before we actually read its value, or we will never get a change
notification.
-rw-r--r-- | src/nautilus-application.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-application.c b/src/nautilus-application.c index 346fa3d82..54f4726e4 100644 --- a/src/nautilus-application.c +++ b/src/nautilus-application.c @@ -951,10 +951,10 @@ update_desktop_from_gsettings (NautilusApplication *self) static void init_desktop (NautilusApplication *self) { - update_desktop_from_gsettings (self); - g_signal_connect_swapped (gnome_background_preferences, "changed::" NAUTILUS_PREFERENCES_SHOW_DESKTOP, + g_signal_connect_swapped (gnome_background_preferences, "changed", G_CALLBACK (update_desktop_from_gsettings), self); + update_desktop_from_gsettings (self); } static gboolean |