summaryrefslogtreecommitdiff
path: root/mate-panel
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel')
-rw-r--r--mate-panel/applet.c2
-rw-r--r--mate-panel/panel-action-button.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/mate-panel/applet.c b/mate-panel/applet.c
index 9ed853fd..a76ed9c9 100644
--- a/mate-panel/applet.c
+++ b/mate-panel/applet.c
@@ -791,6 +791,8 @@ mate_panel_applet_destroy (GtkWidget *widget,
{
g_return_if_fail (info != NULL);
+ g_signal_handlers_disconnect_by_data(info->settings,widget);
+
info->widget = NULL;
if (info->settings) {
diff --git a/mate-panel/panel-action-button.c b/mate-panel/panel-action-button.c
index dc911980..abfe8c22 100644
--- a/mate-panel/panel-action-button.c
+++ b/mate-panel/panel-action-button.c
@@ -647,6 +647,9 @@ void
panel_action_button_set_type (PanelActionButton *button,
PanelActionButtonType type)
{
+ if (!type)
+ return;
+
g_return_if_fail (type > PANEL_ACTION_NONE && type < PANEL_ACTION_LAST);
if (type == button->priv->type)