diff options
-rw-r--r-- | plugins/xsettings/msd-xsettings-manager.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/xsettings/msd-xsettings-manager.c b/plugins/xsettings/msd-xsettings-manager.c index 3e7392e..72c87cc 100644 --- a/plugins/xsettings/msd-xsettings-manager.c +++ b/plugins/xsettings/msd-xsettings-manager.c @@ -508,8 +508,11 @@ static gboolean delayed_toggle_bg_draw (gboolean value) { GSettings *settings; + settings = g_settings_new ("org.mate.background"); g_settings_set_boolean (settings, "show-desktop-icons", value); + g_object_unref (settings); + return FALSE; } @@ -574,6 +577,7 @@ scale_change_workarounds (MateXSettingsManager *manager, int new_scale) g_timeout_add_seconds (1, (GSourceFunc) delayed_toggle_bg_draw, (gpointer) FALSE); g_timeout_add_seconds (2, (GSourceFunc) delayed_toggle_bg_draw, (gpointer) TRUE); } + g_object_unref (desktop_settings); } /* Store new scale value */ |