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:
Benjamin Otte 2018-04-22 02:45:11 +02:00
parent 8d11e7685a
commit c5bcc47ce7

View File

@ -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))