From: Benjamin Otte Date: Tue, 9 May 2023 12:36:45 +0000 (+0200) Subject: gtk-demo: Update fps with higher priority X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~288^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=30acf00bf8e441ce6d683b975ad71b7e14f5a234;p=gtk4.git gtk-demo: Update fps with higher priority We want to make sure to always update it, so make sure it has a higher priority than redraws. --- diff --git a/demos/gtk-demo/iconscroll.c b/demos/gtk-demo/iconscroll.c index 50f99be386..87a0c3eb1f 100644 --- a/demos/gtk-demo/iconscroll.c +++ b/demos/gtk-demo/iconscroll.c @@ -370,7 +370,7 @@ do_iconscroll (GtkWidget *do_widget) set_widget_type (0); label = GTK_WIDGET (gtk_builder_get_object (builder, "fps_label")); - id = g_timeout_add (500, update_fps, label); + id = g_timeout_add_full (G_PRIORITY_HIGH, 500, update_fps, label, NULL); g_object_set_data_full (G_OBJECT (label), "timeout", GUINT_TO_POINTER (id), remove_timeout);