summaryrefslogtreecommitdiff
path: root/mate-panel/libpanel-util/panel-error.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel/libpanel-util/panel-error.c')
-rw-r--r--mate-panel/libpanel-util/panel-error.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mate-panel/libpanel-util/panel-error.c b/mate-panel/libpanel-util/panel-error.c
index b14d225f..81867a4a 100644
--- a/mate-panel/libpanel-util/panel-error.c
+++ b/mate-panel/libpanel-util/panel-error.c
@@ -2,6 +2,7 @@
* panel-error.c: an easy-to-use error dialog
*
* Copyright (C) 2008 Novell, Inc.
+ * Copyright (C) 2012-2021 MATE Developers
*
* Originally based on code from panel-util.c (there was no relevant copyright
* header at the time).
@@ -79,9 +80,9 @@ panel_error_dialog (GtkWindow *parent,
gtk_widget_show_all (dialog);
if (auto_destroy)
- g_signal_connect_swapped (G_OBJECT (dialog), "response",
- G_CALLBACK (gtk_widget_destroy),
- G_OBJECT (dialog));
+ g_signal_connect_swapped (dialog, "response",
+ G_CALLBACK (gtk_widget_destroy),
+ dialog);
if (freeme)
g_free (freeme);