[pybliographer/wip/gtk3] fileselector: Enable dialog chooset to set the parent



commit 1db535c3f2c970f3c14ca4a0cbcc0fbf2eec1c61
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Tue Oct 10 12:21:04 2017 -0300

    fileselector: Enable dialog chooset to set the parent

 Pyblio/GnomeUI/FileSelector.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/Pyblio/GnomeUI/FileSelector.py b/Pyblio/GnomeUI/FileSelector.py
index c4f096d..978c471 100644
--- a/Pyblio/GnomeUI/FileSelector.py
+++ b/Pyblio/GnomeUI/FileSelector.py
@@ -36,11 +36,11 @@ class URLFileSelection (Gtk.FileChooserDialog):
 
     defaultdir = None
     
-    def __init__(self, title = _("File"),
-                 modal = True, has_auto = True, is_save = False,
-                 directory = None, show_type=True):
+    def __init__(self, title=_("File"),
+                 modal=True, has_auto=True, is_save=False,
+                 directory=None, show_type=True, parent=None):
 
-        GObject.GObject.__init__ (self)
+        Gtk.FileChooserDialog.__init__(self, parent=parent)
 
         accelerator = Gtk.AccelGroup ()
         self.add_accel_group (accelerator)


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