[pitivi] medialibrary: Remove transient_for usage which had no effect



commit b66d692a8b5af078bfb22e962b353bb312074f72
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Mon Jun 27 10:06:59 2016 +0200

    medialibrary: Remove transient_for usage which had no effect
    
    It's already set below, along with many other properties.
    
    Differential Revision: https://phabricator.freedesktop.org/D1127

 pitivi/medialibrary.py |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index 72cc341..89bde04 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -673,12 +673,9 @@ class MediaLibraryWidget(Gtk.Box, Loggable):
         if self._importDialog:
             return
 
-        chooser_action = Gtk.FileChooserAction.OPEN
-        dialogtitle = _("Select One or More Files")
-
-        self._importDialog = Gtk.FileChooserDialog(
-            title=dialogtitle, transient_for=None, action=chooser_action)
-
+        self._importDialog = Gtk.FileChooserDialog()
+        self._importDialog.set_title(_("Select One or More Files"))
+        self._importDialog.set_action(Gtk.FileChooserAction.OPEN)
         self._importDialog.set_icon_name("pitivi")
         self._importDialog.add_buttons(_("Cancel"), Gtk.ResponseType.CANCEL,
                                        _("Add"), Gtk.ResponseType.OK)


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