summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-05-17 17:06:37 +0300
committermonsta <[email protected]>2017-05-20 14:13:23 +0300
commitec35128edb71d523d55404bfb0d968f661ac9b8b (patch)
tree270df7eabed38ab63e8d841cc581f77c9f1993c0
parent66ec822a719d83f6e5ac17170d6fd5d14eaa20be (diff)
downloadmate-panel-ec35128edb71d523d55404bfb0d968f661ac9b8b.tar.bz2
mate-panel-ec35128edb71d523d55404bfb0d968f661ac9b8b.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;
}