summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-05-17 17:06:37 +0300
committermonsta <[email protected]>2017-05-17 17:08:10 +0300
commitf659fcb3d4f3a2a1b322f697899774d3f5826b52 (patch)
treec0f1caa6ab5fd62dcf3fba389a984c5f949698b0
parentb9747d5c066f09fbc671c7e5c49892b06d9ca82f (diff)
downloadmate-panel-f659fcb3d4f3a2a1b322f697899774d3f5826b52.tar.bz2
mate-panel-f659fcb3d4f3a2a1b322f697899774d3f5826b52.tar.xz
menu-button: disconnect from GSettings when applet is removed
fixes runtime warning on applet removal
-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;
}