summaryrefslogtreecommitdiff
path: root/mateweather/src/mateweather-applet.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-applet.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-applet.c')
-rw-r--r--mateweather/src/mateweather-applet.c37
1 files changed, 25 insertions, 12 deletions
diff --git a/mateweather/src/mateweather-applet.c b/mateweather/src/mateweather-applet.c
index d32d88bb..3165607e 100644
--- a/mateweather/src/mateweather-applet.c
+++ b/mateweather/src/mateweather-applet.c
@@ -61,7 +61,9 @@ static void help_cb (GtkAction *action,
if (error) {
GtkWidget *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 (dialog), "response", G_CALLBACK (gtk_widget_destroy), NULL);
+ g_signal_connect (dialog, "response",
+ G_CALLBACK (gtk_widget_destroy),
+ NULL);
gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
gtk_window_set_screen (GTK_WINDOW (dialog), gtk_widget_get_screen (GTK_WIDGET (gw_applet->applet)));
gtk_widget_show (dialog);
@@ -344,16 +346,25 @@ void mateweather_applet_create (MateWeatherApplet *gw_applet)
gtk_window_set_default_icon_name ("weather-storm");
- g_signal_connect (G_OBJECT(gw_applet->applet), "change_orient",
- G_CALLBACK(change_orient_cb), gw_applet);
- g_signal_connect (G_OBJECT(gw_applet->applet), "size_allocate",
- G_CALLBACK(size_allocate_cb), gw_applet);
- g_signal_connect (G_OBJECT(gw_applet->applet), "destroy",
- G_CALLBACK (applet_destroy), gw_applet);
- g_signal_connect (G_OBJECT(gw_applet->applet), "button_press_event",
- G_CALLBACK(clicked_cb), gw_applet);
- g_signal_connect (G_OBJECT(gw_applet->applet), "key_press_event",
- G_CALLBACK(key_press_cb), gw_applet);
+ g_signal_connect (gw_applet->applet, "change_orient",
+ G_CALLBACK (change_orient_cb),
+ gw_applet);
+
+ g_signal_connect (gw_applet->applet, "size_allocate",
+ G_CALLBACK (size_allocate_cb),
+ gw_applet);
+
+ g_signal_connect (gw_applet->applet, "destroy",
+ G_CALLBACK (applet_destroy),
+ gw_applet);
+
+ g_signal_connect (gw_applet->applet, "button_press_event",
+ G_CALLBACK(clicked_cb),
+ gw_applet);
+
+ g_signal_connect (gw_applet->applet, "key_press_event",
+ G_CALLBACK (key_press_cb),
+ gw_applet);
gtk_widget_set_tooltip_text (GTK_WIDGET(gw_applet->applet), _("MATE Weather"));
@@ -387,7 +398,9 @@ void mateweather_applet_create (MateWeatherApplet *gw_applet)
monitor = g_network_monitor_get_default();
g_signal_connect (monitor, "network-changed",
- G_CALLBACK (network_changed), gw_applet);}
+ G_CALLBACK (network_changed),
+ gw_applet);
+}
gint timeout_cb (gpointer data)
{