summaryrefslogtreecommitdiff
path: root/libmate-panel-applet
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-17 14:17:29 +0100
committerraveit65 <[email protected]>2021-12-20 16:57:51 +0100
commit54e2bb1acaf71b7b54e796f7bfa311fb32d84830 (patch)
tree74dff7552f367c583be5f1f1944a3b911f32f2c3 /libmate-panel-applet
parent5bd053ad542479eaec4166e45195c5e911472f88 (diff)
downloadmate-panel-54e2bb1acaf71b7b54e796f7bfa311fb32d84830.tar.bz2
mate-panel-54e2bb1acaf71b7b54e796f7bfa311fb32d84830.tar.xz
Remove unnecessary cast in g_signal_connect* call
Diffstat (limited to 'libmate-panel-applet')
-rw-r--r--libmate-panel-applet/mate-panel-applet.c2
-rw-r--r--libmate-panel-applet/test-dbus-applet.c9
2 files changed, 4 insertions, 7 deletions
diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c
index 33260611..8d1018d6 100644
--- a/libmate-panel-applet/mate-panel-applet.c
+++ b/libmate-panel-applet/mate-panel-applet.c
@@ -1942,7 +1942,7 @@ mate_panel_applet_constructor (GType type,
gtk_widget_set_name (widget, "PanelPlug");
_mate_panel_applet_prepare_css (context);
- g_signal_connect_swapped (G_OBJECT (priv->plug), "embedded",
+ g_signal_connect_swapped (priv->plug, "embedded",
G_CALLBACK (mate_panel_applet_setup),
applet);
diff --git a/libmate-panel-applet/test-dbus-applet.c b/libmate-panel-applet/test-dbus-applet.c
index 0da1e3ad..cb520680 100644
--- a/libmate-panel-applet/test-dbus-applet.c
+++ b/libmate-panel-applet/test-dbus-applet.c
@@ -171,18 +171,15 @@ test_applet_fill (TestApplet *applet)
mate_panel_applet_set_flags (MATE_PANEL_APPLET (applet), MATE_PANEL_APPLET_HAS_HANDLE);
- g_signal_connect (G_OBJECT (applet),
- "change-orient",
+ g_signal_connect (applet, "change-orient",
G_CALLBACK (test_applet_handle_orient_change),
NULL);
- g_signal_connect (G_OBJECT (applet),
- "change-size",
+ g_signal_connect (applet, "change-size",
G_CALLBACK (test_applet_handle_size_change),
NULL);
- g_signal_connect (G_OBJECT (applet),
- "change-background",
+ g_signal_connect (applet, "change-background",
G_CALLBACK (test_applet_handle_background_change),
NULL);