Commit c84f4e00 by Cosimo Cecchi

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.
parent 59af0327
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment