diff options
author | monsta <[email protected]> | 2017-05-17 14:18:00 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2017-05-17 14:28:18 +0300 |
commit | b9747d5c066f09fbc671c7e5c49892b06d9ca82f (patch) | |
tree | 9978150ad6f828cae121f7d4fc2a7f0ff89873da | |
parent | 51c4624a46a7f6d7ef85df07b8e5c45d6fec4e26 (diff) | |
download | mate-panel-b9747d5c066f09fbc671c7e5c49892b06d9ca82f.tar.bz2 mate-panel-b9747d5c066f09fbc671c7e5c49892b06d9ca82f.tar.xz |
action-button: disconnect from GSettings when applet is removed
fixes runtime warning on applet removal
-rw-r--r-- | mate-panel/panel-action-button.c | 8 |
1 files 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; |