[pitivi: 10/16] Auto-expand the first two errors in FileListErrorDialog



commit 3f7226dff87b6d8059aa46e2340ff2abf42b0e3b
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Sun Dec 26 22:27:13 2010 -0500

    Auto-expand the first two errors in FileListErrorDialog

 pitivi/ui/filelisterrordialog.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/filelisterrordialog.py b/pitivi/ui/filelisterrordialog.py
index 3f118e1..9ed5b9a 100644
--- a/pitivi/ui/filelisterrordialog.py
+++ b/pitivi/ui/filelisterrordialog.py
@@ -56,6 +56,8 @@ class FileListErrorDialog(GladeWindow, Signallable, Loggable):
         self.debug("Uri:%s, reason:%s, extra:%s", uri, reason, extra)
         exp = self._createFileExpander(uri, reason, extra)
         self.errorvbox.pack_start(exp, expand=False, fill=False)
+        if len(self.errorvbox.get_children()) < 3:
+            exp.set_expanded(True)  # Let's save the user some clicks
         exp.show_all()
         #self.storemodel.append([str(uri), str(reason)])
 



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