summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-05-17 14:18:00 +0300
committermonsta <[email protected]>2017-05-20 14:13:15 +0300
commit66ec822a719d83f6e5ac17170d6fd5d14eaa20be (patch)
treeb46f95a3f521cec976825e9473b935b121c34de5
parentb2d8c03dc073e082b3a40cb0a5f076c1e6463470 (diff)
downloadmate-panel-66ec822a719d83f6e5ac17170d6fd5d14eaa20be.tar.bz2
mate-panel-66ec822a719d83f6e5ac17170d6fd5d14eaa20be.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.c8
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;