mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
demo: Don't add more icons all the time
If adding new icons takes longer than a second, the frame clock should run before we add even more icons...
This commit is contained in:
parent
8d11e7685a
commit
c5bcc47ce7
@ -190,9 +190,11 @@ do_fishbowl (GtkWidget *do_widget)
|
||||
G_CALLBACK (gtk_widget_destroyed), &window);
|
||||
|
||||
gtk_widget_realize (window);
|
||||
g_timeout_add_seconds (1,
|
||||
move_fish,
|
||||
bowl);
|
||||
g_timeout_add_seconds_full (G_PRIORITY_DEFAULT_IDLE,
|
||||
1,
|
||||
move_fish,
|
||||
bowl,
|
||||
NULL);
|
||||
}
|
||||
|
||||
if (!gtk_widget_get_visible (window))
|
||||
|
Loading…
Reference in New Issue
Block a user