Adapt to renamed Clutter threading functions

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3501>
This commit is contained in:
Bilal Elmoussaoui 2024-10-12 13:11:09 +02:00
parent bab37d3286
commit 715b47bddc
2 changed files with 7 additions and 7 deletions

View File

@ -430,7 +430,7 @@ const SystemActions = GObject.registerClass({
if (Main.screenShield)
Main.screenShield.lock(false);
Clutter.threads_add_repaint_func_full(Clutter.RepaintFlags.POST_PAINT, () => {
Clutter.threads_add_repaint_func(Clutter.RepaintFlags.POST_PAINT, () => {
Gdm.goto_login_session_sync(null);
return false;
});

View File

@ -1008,16 +1008,16 @@ _shell_global_set_plugin (ShellGlobal *global,
g_signal_connect (global->stage, "notify::height",
G_CALLBACK (global_stage_notify_height), global);
clutter_threads_add_repaint_func_full (CLUTTER_REPAINT_FLAGS_PRE_PAINT,
global_stage_before_paint,
global, NULL);
clutter_threads_add_repaint_func (CLUTTER_REPAINT_FLAGS_PRE_PAINT,
global_stage_before_paint,
global, NULL);
g_signal_connect (global->stage, "after-paint",
G_CALLBACK (global_stage_after_paint), global);
clutter_threads_add_repaint_func_full (CLUTTER_REPAINT_FLAGS_POST_PAINT,
global_stage_after_swap,
global, NULL);
clutter_threads_add_repaint_func (CLUTTER_REPAINT_FLAGS_POST_PAINT,
global_stage_after_swap,
global, NULL);
shell_perf_log_define_event (shell_perf_log_get_default(),
"clutter.stagePaintStart",