diff options
author | monsta <[email protected]> | 2017-05-17 14:18:00 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2017-05-25 14:08:15 +0300 |
commit | e10261a561a22a693022b7a48e26bbf1af50b954 (patch) | |
tree | 9f2c90e082d35166893a3ac4b46a405313512ab9 | |
parent | 49361a23c0dc0ba1c0a92f3792bdb1cbafca425c (diff) | |
download | mate-panel-e10261a561a22a693022b7a48e26bbf1af50b954.tar.bz2 mate-panel-e10261a561a22a693022b7a48e26bbf1af50b954.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 67be0f78..8c9a4243 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; |