thumbnail: Use new glib attributes to get the thumbnails for x/xx large
When in the introduction of x-large and xx-large thumbnails in
278435e3c20244b48986c6cd8b72c5317668c72d, we no longers retrieved the
thumbnails correctly, because glib/gio was only looking for normal and
large thumbnail paths.
This reverts commit 032d7d00. Since GTK 4.11.2, the workaround in that
commit is not needed anymore, as gtk@e20a5e1b fixes the lookup behavior
for unthemed icons. See gtk!5865 for more details. GTK 4.11.2 is the
required version already in meson.build, so the fix should be included.
216a74a...
by
Alice Mikhaylenko <email address hidden>
window: Move .view to the window itself
So that instead of a window background covered by view background you only
have one.
f8ebed8...
by
Alice Mikhaylenko <email address hidden>
The thumbnail process works as follows:
1) Generate the thumbnail
2) Save the thumbnail
3) Invalidate the file attributes (adding file to work queue)
4) Load the pixbuf from the thumbnail file (saved in [2])
5) Set the pixbuf to the file
This is wasteful. Instead, take the pixbuf from [1] and set it directly
on the file. Also increase the maximum number of thumbnailing threads
since the load on the main thread is now reduced.
thumbnails: Reduce thumbnailer thread calls for updated files
Reduce redundant calls to thumbnailer thread by using a backoff timer
for recently updated files. Set the timer proportional to how recent
the file has changed.