summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/panel-menu-button.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mate-panel/panel-menu-button.c b/mate-panel/panel-menu-button.c
index c49de47c..3fd70032 100644
--- a/mate-panel/panel-menu-button.c
+++ b/mate-panel/panel-menu-button.c
@@ -621,6 +621,9 @@ panel_menu_button_disconnect_from_gsettings (PanelMenuButton *button)
{
if (button->priv->settings)
{
+ g_signal_handlers_disconnect_by_func (button->priv->settings,
+ G_CALLBACK (panel_menu_button_gsettings_notify),
+ button);
g_object_unref (button->priv->settings);
button->priv->settings = NULL;
}