summaryrefslogtreecommitdiff
path: root/geyes/src
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 /geyes/src
parente948feaf6a87c411503aee62f97334e500cb80f1 (diff)
downloadmate-applets-3b2fd26415133da19eee10ae18b61df19d5ce80f.tar.bz2
mate-applets-3b2fd26415133da19eee10ae18b61df19d5ce80f.tar.xz
Remove unnecessary casts on g_signal_connect calls
Diffstat (limited to 'geyes/src')
-rw-r--r--geyes/src/geyes.c5
-rw-r--r--geyes/src/themes.c2
2 files changed, 3 insertions, 4 deletions
diff --git a/geyes/src/geyes.c b/geyes/src/geyes.c
index 3c8b182c..7fca8539 100644
--- a/geyes/src/geyes.c
+++ b/geyes/src/geyes.c
@@ -349,7 +349,7 @@ help_cb (GtkAction *action,
GTK_BUTTONS_CLOSE,
_("There was an error displaying help: %s"),
error->message);
- g_signal_connect (G_OBJECT (dialog), "response",
+ g_signal_connect (dialog, "response",
G_CALLBACK (gtk_widget_destroy),
NULL);
gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
@@ -427,8 +427,7 @@ geyes_applet_fill (MatePanelApplet *applet)
set_atk_name_description (GTK_WIDGET (eyes_applet->applet), _("Eyes"),
_("The eyes look in the direction of the mouse pointer"));
- g_signal_connect (eyes_applet->vbox,
- "destroy",
+ g_signal_connect (eyes_applet->vbox, "destroy",
G_CALLBACK (destroy_cb),
eyes_applet);
diff --git a/geyes/src/themes.c b/geyes/src/themes.c
index 726af951..e9ebe24b 100644
--- a/geyes/src/themes.c
+++ b/geyes/src/themes.c
@@ -225,7 +225,7 @@ phelp_cb (GtkDialog *dialog)
GTK_BUTTONS_CLOSE,
_("There was an error displaying help: %s"),
error->message);
- g_signal_connect (G_OBJECT (error_dialog), "response",
+ g_signal_connect (error_dialog, "response",
G_CALLBACK (gtk_widget_destroy),
NULL);
gtk_window_set_resizable (GTK_WINDOW (error_dialog), FALSE);