diff options
-rw-r--r-- | mate-panel/panel-profile.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mate-panel/panel-profile.c b/mate-panel/panel-profile.c index 7353112b..7d9ac072 100644 --- a/mate-panel/panel-profile.c +++ b/mate-panel/panel-profile.c @@ -1040,6 +1040,16 @@ panel_profile_delete_toplevel (PanelToplevel *toplevel) toplevel_id = panel_profile_get_toplevel_id (toplevel); + /* disable GSettings signals */ + if (toplevel->settings) { + g_object_unref (toplevel->settings); + toplevel->settings = NULL; + } + if (toplevel->background_settings) { + g_object_unref (toplevel->background_settings); + toplevel->background_settings = NULL; + } + panel_profile_delete_toplevel_objects (toplevel_id); panel_profile_remove_from_list (PANEL_GSETTINGS_TOPLEVELS, toplevel_id); |