[pitivi: 18/36] Remove option for enable/disable preview



commit 35bf5720e7e253549fc4d1e0bf2d6ae97b1d1f2d
Author: Pier Carteri <pier carteri gmail com>
Date:   Sat Sep 4 17:46:50 2010 +0200

    Remove option for enable/disable preview

 pitivi/ui/filechooserpreview.py |    7 -------
 pitivi/ui/sourcelist.py         |    9 ++++-----
 2 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/pitivi/ui/filechooserpreview.py b/pitivi/ui/filechooserpreview.py
index 9cd2712..39d70a5 100644
--- a/pitivi/ui/filechooserpreview.py
+++ b/pitivi/ui/filechooserpreview.py
@@ -16,7 +16,6 @@ from pitivi.utils import beautify_length, uri_is_valid
 from pitivi.configure import get_pixmap_dir
 from pitivi.factories.file import PictureFileSourceFactory
 from pitivi.settings import GlobalSettings
-from pitivi.ui.prefs import PreferencesDialog
 from gettext import gettext as _
 
 
@@ -40,12 +39,6 @@ GlobalSettings.addConfigOption('FCpreviewHeight',
     default=PREVIEW_HEIGHT)
 
 
-PreferencesDialog.addTogglePreference('FCEnablePreview',
-    section = _('Appearance'),
-    label = _("Show preview on Import"),
-    description = _("Enable Preview on FileChooser"))
-
-
 def get_playbin():
     try:
         return gst.element_factory_make("playbin2", "preview-player")
diff --git a/pitivi/ui/sourcelist.py b/pitivi/ui/sourcelist.py
index abce228..3c3b140 100644
--- a/pitivi/ui/sourcelist.py
+++ b/pitivi/ui/sourcelist.py
@@ -523,11 +523,10 @@ class SourceList(gtk.VBox, Loggable):
         self._importDialog.set_default_response(gtk.RESPONSE_OK)
         self._importDialog.set_select_multiple(True)
         self._importDialog.set_modal(False)
-        if self.settings.FCEnablePreview:
-            pw = PreviewWidget(self.app)
-            self._importDialog.set_preview_widget(pw)
-            self._importDialog.set_use_preview_label(False)
-            self._importDialog.connect('update-preview', pw.add_preview_request)
+        pw = PreviewWidget(self.app)
+        self._importDialog.set_preview_widget(pw)
+        self._importDialog.set_use_preview_label(False)
+        self._importDialog.connect('update-preview', pw.add_preview_request)
         self._importDialog.set_current_folder(self.app.settings.lastImportFolder)
 
         self._importDialog.connect('response', self._dialogBoxResponseCb, select_folders)



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