[pybliographer/wip/gtk3] document: set the transient window to file dialogs



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

    document: set the transient window to file dialogs

 Pyblio/GnomeUI/Document.py |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/Pyblio/GnomeUI/Document.py b/Pyblio/GnomeUI/Document.py
index 98c4b2b..2b5ae92 100644
--- a/Pyblio/GnomeUI/Document.py
+++ b/Pyblio/GnomeUI/Document.py
@@ -536,7 +536,8 @@ class Document (Connector.Publisher):
         ''' add all the entries of another database to the current one '''
         # get a new file name
         (url, how) = FileSelector.URLFileSelection (_("Merge file"),
-                                                    has_auto = True).run ()
+                                                    has_auto=True,
+                                                    parent=self.w).run ()
 
         if url is None: return
 
@@ -583,7 +584,8 @@ class Document (Connector.Publisher):
         if not self.confirm (): return
 
         # get a new file name
-        (url, how) = FileSelector.URLFileSelection (_("Open file")).run ()
+        (url, how) = FileSelector.URLFileSelection (_("Open file"),
+                                                    parent=self.w).run ()
 
         if url is None: return
         self.open_document (url, how)
@@ -757,8 +759,10 @@ class Document (Connector.Publisher):
     
     def save_document_as (self, * arg):
         # get a new file name
-        (url, how) = FileSelector.URLFileSelection (
-           _("Save As..."), has_auto = False, is_save = True).run ()
+        (url, how) = FileSelector.URLFileSelection (_("Save As..."),
+                                                    has_auto=False,
+                                                    is_save=True,
+                                                    parent=self.w).run ()
         
         if url is None: return
 


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