[gnome-music/wip/mschraal/file-exists-async: 23/30] albumsview: Bump the GLib priority




commit 4cb013b2f3b9167286e492aa423a077993081edd
Author: Marinus Schraal <mschraal gnome org>
Date:   Sun Aug 29 17:18:58 2021 +0200

    albumsview: Bump the GLib priority
    
    Make the priority a little higher, as it is the default view on startup.

 gnomemusic/views/albumsview.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/views/albumsview.py b/gnomemusic/views/albumsview.py
index dff833e2c..36978a8ef 100644
--- a/gnomemusic/views/albumsview.py
+++ b/gnomemusic/views/albumsview.py
@@ -106,7 +106,7 @@ class AlbumsView(Gtk.Stack):
 
         self._adjustment_timeout_id = GLib.timeout_add(
             200, self._retrieve_covers, adjustment.props.value,
-            priority=GLib.PRIORITY_LOW)
+            priority=GLib.PRIORITY_DEFAULT - 10)
 
     def _retrieve_covers(self, old_adjustment):
         adjustment = self._scrolled_window.props.vadjustment.props.value


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]