summaryrefslogtreecommitdiff
path: root/savers/floaters.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-27 13:31:32 +0200
committerraveit65 <[email protected]>2022-02-19 02:05:45 +0100
commitdc4857ad422547e89d88715c4ca2730e3225a5d7 (patch)
tree64a43adba88ac99744e1f047b21513d2cfc0df9c /savers/floaters.c
parentc419a6be1e3ba4ba2c6798414450d2c48016ce49 (diff)
downloadmate-screensaver-dc4857ad422547e89d88715c4ca2730e3225a5d7.tar.bz2
mate-screensaver-dc4857ad422547e89d88715c4ca2730e3225a5d7.tar.xz
Unnecessary G_OBJECT cast when calling signal connect function
Diffstat (limited to 'savers/floaters.c')
-rw-r--r--savers/floaters.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/savers/floaters.c b/savers/floaters.c
index 009cc3f..3dae45c 100644
--- a/savers/floaters.c
+++ b/savers/floaters.c
@@ -807,11 +807,11 @@ screen_saver_new (GtkWidget *drawing_area,
g_hash_table_new_full (NULL, NULL, NULL,
(GDestroyNotify) cached_source_free);
- g_signal_connect_swapped (G_OBJECT (drawing_area), "size-allocate",
+ g_signal_connect_swapped (drawing_area, "size-allocate",
G_CALLBACK (screen_saver_on_size_allocate),
screen_saver);
- g_signal_connect_swapped (G_OBJECT (drawing_area), "draw",
+ g_signal_connect_swapped (drawing_area, "draw",
G_CALLBACK (screen_saver_on_draw),
screen_saver);
@@ -1174,8 +1174,9 @@ main (int argc,
window = gs_theme_window_new ();
- g_signal_connect (G_OBJECT (window), "delete-event",
- G_CALLBACK (gtk_main_quit), NULL);
+ g_signal_connect (window, "delete-event",
+ G_CALLBACK (gtk_main_quit),
+ NULL);
drawing_area = GTK_WIDGET (gtk_drawing_area_new ());