summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;