[pybliographer] ui: Enable FileSelectorDialog to set the parent
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pybliographer] ui: Enable FileSelectorDialog to set the parent
- Date: Fri, 30 Mar 2018 03:30:43 +0000 (UTC)
commit 3ad4e5734bafafaf38c352187417e5923cd71f89
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Fri Mar 30 00:06:43 2018 -0300
ui: Enable FileSelectorDialog 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 bfc49e9..e95e1b7 100644
--- a/Pyblio/GnomeUI/FileSelector.py
+++ b/Pyblio/GnomeUI/FileSelector.py
@@ -34,11 +34,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):
- gtk.FileChooserDialog.__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]