From ec35128edb71d523d55404bfb0d968f661ac9b8b Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 17 May 2017 17:06:37 +0300 Subject: menu-button: disconnect from GSettings when applet is removed fixes runtime warning on applet removal --- mate-panel/panel-menu-button.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v1.2.1