summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2023-05-09 14:36:45 +0200
committerBenjamin Otte <otte@redhat.com>2023-05-09 16:29:41 +0200
commit30acf00bf8e441ce6d683b975ad71b7e14f5a234 (patch)
tree6b089e7f78c2c78d5fc6eefb13889d7d76e04e6b /demos
parent02e2a6f311210d28e135db01d7bf2f8417d66e5c (diff)
downloadgtk+-30acf00bf8e441ce6d683b975ad71b7e14f5a234.tar.gz
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.
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/iconscroll.c2
1 files changed, 1 insertions, 1 deletions
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);