Skip to content

Commit 4a1ab16

Browse files
committed
cinnamon-global.c: fix repaint function signatures
and cast them to the correct type when adding the source. I overlooked this in PR#7478
1 parent 311c3d0 commit 4a1ab16

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/cinnamon-global.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -796,17 +796,17 @@ global_stage_notify_height (GObject *gobject,
796796
g_object_notify (G_OBJECT (global), "screen-height");
797797
}
798798

799-
static gboolean
800-
global_stage_before_paint (CinnamonGlobal *global)
799+
static void
800+
global_stage_before_paint (gpointer data)
801801
{
802802
cinnamon_perf_log_event (cinnamon_perf_log_get_default (),
803803
"clutter.stagePaintStart");
804804

805805
return TRUE;
806806
}
807807

808-
static gboolean
809-
global_stage_after_paint (CinnamonGlobal *global)
808+
static void
809+
global_stage_after_paint (gpointer data)
810810
{
811811
cinnamon_perf_log_event (cinnamon_perf_log_get_default (),
812812
"clutter.stagePaintDone");
@@ -991,10 +991,10 @@ _cinnamon_global_set_plugin (CinnamonGlobal *global,
991991
if (g_getenv ("CINNAMON_PERF_OUTPUT") != NULL)
992992
{
993993
clutter_threads_add_repaint_func_full (CLUTTER_REPAINT_FLAGS_PRE_PAINT,
994-
global_stage_before_paint,
994+
(GSourceFunc) global_stage_before_paint,
995995
NULL, NULL);
996996
clutter_threads_add_repaint_func_full (CLUTTER_REPAINT_FLAGS_POST_PAINT,
997-
global_stage_after_paint,
997+
(GSourceFunc) global_stage_after_paint,
998998
NULL, NULL);
999999
cinnamon_perf_log_define_event (cinnamon_perf_log_get_default(),
10001000
"clutter.stagePaintStart",

0 commit comments

Comments
 (0)