[pitivi] medialibrary: Add a debug statement for storemodel row flushing



commit 7a639bf6830786d663fae313e6e220a98a4668df
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Sun Dec 15 21:14:39 2013 -0500

    medialibrary: Add a debug statement for storemodel row flushing

 pitivi/medialibrary.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index b16e61d..d927ebf 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -535,7 +535,7 @@ class MediaLibraryWidget(Gtk.VBox, Loggable):
                 return None, None
 
     def _addAsset(self, asset):
-        # 128 is the normal thumb size, but for icons it looks insane.
+        # 128 is the normal size for thumbnails, but for *icons* it looks insane
         LARGE_SIZE = 96
         info = asset.get_info()
 
@@ -591,6 +591,7 @@ class MediaLibraryWidget(Gtk.VBox, Loggable):
             self.flush_pending_rows()
 
     def flush_pending_rows(self):
+        self.debug("Flushing %d pending model rows", len(self.pending_rows))
         for row in self.pending_rows:
             self.storemodel.append(row)
         del self.pending_rows[:]


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