GtkIconHelper: Preload icons for mapped widgets with higher priority
authorAlexander Larsson <alexl@redhat.com>
Thu, 30 Jan 2020 14:41:24 +0000 (15:41 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 30 Jan 2020 14:41:24 +0000 (15:41 +0100)
commitb67d5822308a5dcd41423eb57acf41897df18d01
treeb912ba26fd9678b3678da618391cee1d750c7631
parent498ab6ac6cd8681baa4f5bee0dd8a86e4191e9b7
GtkIconHelper: Preload icons for mapped widgets with higher priority

We look at whether a widget will be mapped (the actual state is not
yet set, so we can't rely on that at css validation time) and use
that to set the i/o priority of the async task.

This means that its likely that widgets that will be displayed soon
are loaded before those that are not yet going to be needed.
gtk/gtkiconhelper.c