summaryrefslogtreecommitdiff
path: root/mateweather/src/mateweather-pref.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-29 10:38:15 +0100
committerraveit65 <[email protected]>2021-01-28 21:08:12 +0100
commit3b2fd26415133da19eee10ae18b61df19d5ce80f (patch)
treed8848f632cd5ce0a7fac47dd9258dd7eb56c40f2 /mateweather/src/mateweather-pref.c
parente948feaf6a87c411503aee62f97334e500cb80f1 (diff)
downloadmate-applets-3b2fd26415133da19eee10ae18b61df19d5ce80f.tar.bz2
mate-applets-3b2fd26415133da19eee10ae18b61df19d5ce80f.tar.xz
Remove unnecessary casts on g_signal_connect calls
Diffstat (limited to 'mateweather/src/mateweather-pref.c')
-rw-r--r--mateweather/src/mateweather-pref.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mateweather/src/mateweather-pref.c b/mateweather/src/mateweather-pref.c
index c0408a68..12ef8864 100644
--- a/mateweather/src/mateweather-pref.c
+++ b/mateweather/src/mateweather-pref.c
@@ -772,7 +772,9 @@ static void help_cb(GtkDialog* dialog, MateWeatherPref* pref)
if (error)
{
GtkWidget* error_dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("There was an error displaying help: %s"), error->message);
- g_signal_connect (G_OBJECT (error_dialog), "response", G_CALLBACK (gtk_widget_destroy), NULL);
+ g_signal_connect (error_dialog, "response",
+ G_CALLBACK (gtk_widget_destroy),
+ NULL);
gtk_window_set_resizable (GTK_WINDOW (error_dialog), FALSE);
gtk_window_set_screen (GTK_WINDOW (error_dialog), gtk_widget_get_screen (GTK_WIDGET (dialog)));
gtk_widget_show (error_dialog);