summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-27 13:31:32 +0200
committerrbuj <[email protected]>2021-10-27 13:31:32 +0200
commitebfcf9646eb4b9899399de6211f3354e8d36edb2 (patch)
treec41afa7a4a4cef091dc96e5886c0fdb1db089f63
parented6e6065bf0e85b64317b5a34b9f7a36a0c839a6 (diff)
downloadmate-screensaver-obj-cast.tar.bz2
mate-screensaver-obj-cast.tar.xz
Unnecessary G_OBJECT cast when calling signal connect functionobj-cast
-rw-r--r--savers/floaters.c9
-rw-r--r--savers/popsquares.c5
-rw-r--r--savers/slideshow.c5
-rw-r--r--src/mate-screensaver-preferences.c2
4 files changed, 12 insertions, 9 deletions
diff --git a/savers/floaters.c b/savers/floaters.c
index bca72da..4b476d6 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);
@@ -1182,8 +1182,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 ());
diff --git a/savers/popsquares.c b/savers/popsquares.c
index 254764e..8337b6d 100644
--- a/savers/popsquares.c
+++ b/savers/popsquares.c
@@ -54,8 +54,9 @@ main (int argc, char **argv)
}
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);
g_set_prgname ("popsquares");
diff --git a/savers/slideshow.c b/savers/slideshow.c
index fa350f7..d02cc14 100644
--- a/savers/slideshow.c
+++ b/savers/slideshow.c
@@ -93,8 +93,9 @@ main (int argc, char **argv)
g_set_prgname ("slideshow");
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);
engine = g_object_new (GSTE_TYPE_SLIDESHOW, NULL);
diff --git a/src/mate-screensaver-preferences.c b/src/mate-screensaver-preferences.c
index 3c7621a..4bf24ce 100644
--- a/src/mate-screensaver-preferences.c
+++ b/src/mate-screensaver-preferences.c
@@ -721,7 +721,7 @@ setup_treeview (GtkWidget *tree,
select = gtk_tree_view_get_selection (GTK_TREE_VIEW (tree));
gtk_tree_selection_set_mode (select, GTK_SELECTION_SINGLE);
- g_signal_connect (G_OBJECT (select), "changed",
+ g_signal_connect (select, "changed",
G_CALLBACK (tree_selection_changed_cb),
preview);