From b9747d5c066f09fbc671c7e5c49892b06d9ca82f Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 17 May 2017 14:18:00 +0300 Subject: action-button: disconnect from GSettings when applet is removed fixes runtime warning on applet removal --- mate-panel/panel-action-button.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mate-panel/panel-action-button.c b/mate-panel/panel-action-button.c index 27f1c7bf..dc911980 100644 --- a/mate-panel/panel-action-button.c +++ b/mate-panel/panel-action-button.c @@ -476,9 +476,13 @@ panel_action_button_finalize (GObject *object) { PanelActionButton *button = PANEL_ACTION_BUTTON (object); - if (button->priv->settings) + if (button->priv->settings) { + g_signal_handlers_disconnect_by_func (button->priv->settings, + G_CALLBACK (panel_action_button_type_changed), + button); g_object_unref (button->priv->settings); - button->priv->settings = NULL; + button->priv->settings = NULL; + } button->priv->info = NULL; button->priv->type = PANEL_ACTION_NONE; -- cgit v1.2.1