[pitivi: 1/28] Reuse filechooserpreview in the missing files dialog



commit dde02390bf3f6e25d557e7a125fd543e4a15a5eb
Author: James Putt <putt james gmail com>
Date:   Tue Jul 5 22:03:16 2011 -0400

    Reuse filechooserpreview in the missing files dialog
    
    Fixes bug #650807

 pitivi/ui/mainwindow.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 188f766..e43be9d 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -64,6 +64,7 @@ from pitivi.ui.common import SPACING
 from pitivi.ui.common import factory_name
 from pitivi.utils import beautify_length
 from pitivi.ui.zoominterface import Zoomable
+from pitivi.ui.filechooserpreview import PreviewWidget
 
 if HAVE_GCONF:
     D_G_INTERFACE = "/desktop/gnome/interface"
@@ -909,6 +910,10 @@ class PitiviMainWindow(gtk.Window, Loggable):
 
         chooser = gtk.FileChooserWidget(action=gtk.FILE_CHOOSER_ACTION_OPEN)
         chooser.set_select_multiple(False)
+        pw = PreviewWidget(self.app)
+        chooser.set_preview_widget(pw)
+        chooser.set_use_preview_label(False)
+        chooser.connect('update-preview', pw.add_preview_request)
         chooser.set_current_folder(self.settings.lastProjectFolder)
         dialog.get_content_area().pack_start(chooser, True, True)
         chooser.show()



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