[pybliographer] ui: set the transient window to file dialogs in document
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pybliographer] ui: set the transient window to file dialogs in document
- Date: Fri, 30 Mar 2018 03:30:48 +0000 (UTC)
commit 584cfce2281aabdd4660a6d209cf19c2e0b60300
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Fri Mar 30 00:09:20 2018 -0300
ui: set the transient window to file dialogs in document
Pyblio/GnomeUI/Document.py | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/Pyblio/GnomeUI/Document.py b/Pyblio/GnomeUI/Document.py
index bbcabab..b77482f 100644
--- a/Pyblio/GnomeUI/Document.py
+++ b/Pyblio/GnomeUI/Document.py
@@ -524,8 +524,9 @@ class Document (Connector.Publisher):
def merge_database (self, * arg):
''' 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 ()
+ (url, how) = FileSelector.URLFileSelection(_("Merge file"),
+ has_auto=True,
+ parent=self.w).run ()
if url is None: return
@@ -572,7 +573,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)
@@ -746,8 +748,10 @@ class Document (Connector.Publisher):
def save_document_as (self, * arg):
# get a new file name
- (url, how) = FileSelector.URLFileSelection (
- _(u"Save As…"), has_auto = False, is_save = True).run ()
+ (url, how) = FileSelector.URLFileSelection(_(u"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]