Commit 44c66196 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

gtk-demo: Speed up image demo

The progressive loading demo here was so slow as to appear
broken. Make it faster, and ensure that it updates regularly.
parent ef7499a3
Pipeline #223340 passed with stages
in 12 minutes and 41 seconds
......@@ -56,6 +56,7 @@ progressive_updated_callback (GdkPixbufLoader *loader,
picture = GTK_WIDGET (data);
pixbuf = gdk_pixbuf_loader_get_pixbuf (loader);
gtk_picture_set_pixbuf (GTK_PICTURE (picture), NULL);
gtk_picture_set_pixbuf (GTK_PICTURE (picture), pixbuf);
......@@ -262,7 +263,7 @@ start_progressive_loading (GtkWidget *picture)
* The timeout simply simulates a slow data source by inserting
* pauses in the reading process.
load_timeout = g_timeout_add (1500, progressive_timeout, picture);
load_timeout = g_timeout_add (300, progressive_timeout, picture);
g_source_set_name_by_id (load_timeout, "[gtk] progressive_timeout");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment