projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02e2a6f
)
gtk-demo: Update fps with higher priority
author
Benjamin Otte
<otte@redhat.com>
Tue, 9 May 2023 12:36:45 +0000
(14:36 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Tue, 9 May 2023 14:29:41 +0000
(16:29 +0200)
We want to make sure to always update it, so make sure it has a higher
priority than redraws.
demos/gtk-demo/iconscroll.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/iconscroll.c
b/demos/gtk-demo/iconscroll.c
index 50f99be3867845fd7c09d03004ea4f34199dc788..87a0c3eb1f256b08a22021521f589f85d60dbb8c 100644
(file)
--- 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);