[nautilus] application: use correct order to watch for GSettings changes
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] application: use correct order to watch for GSettings changes
- Date: Sun, 30 Nov 2014 19:02:19 +0000 (UTC)
commit c84f4e0039353e3846afda132a53d96fcadc0715
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Nov 30 11:01:00 2014 -0800
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.
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 346fa3d..54f4726 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]