add a few more parents to a few more dialogs
This commit is contained in:
parent
2b6a96afbd
commit
c23093d6f8
@ -1643,6 +1643,7 @@ class GuiDestinationOption(Gtk.Box):
|
|||||||
"""
|
"""
|
||||||
Gtk.Box.__init__(self)
|
Gtk.Box.__init__(self)
|
||||||
self.__option = option
|
self.__option = option
|
||||||
|
self.__uistate = uistate
|
||||||
self.__entry = Gtk.Entry()
|
self.__entry = Gtk.Entry()
|
||||||
self.__entry.set_text( self.__option.get_value() )
|
self.__entry.set_text( self.__option.get_value() )
|
||||||
|
|
||||||
@ -1695,6 +1696,7 @@ class GuiDestinationOption(Gtk.Box):
|
|||||||
my_action = Gtk.FileChooserAction.SAVE
|
my_action = Gtk.FileChooserAction.SAVE
|
||||||
|
|
||||||
fcd = Gtk.FileChooserDialog(_("Save As"), action=my_action,
|
fcd = Gtk.FileChooserDialog(_("Save As"), action=my_action,
|
||||||
|
parent=self.__uistate.window,
|
||||||
buttons=(_('_Cancel'),
|
buttons=(_('_Cancel'),
|
||||||
Gtk.ResponseType.CANCEL,
|
Gtk.ResponseType.CANCEL,
|
||||||
_('_Open'),
|
_('_Open'),
|
||||||
|
@ -423,6 +423,7 @@ class PluginStatus(ManagedWindow):
|
|||||||
Select a file from the file system.
|
Select a file from the file system.
|
||||||
"""
|
"""
|
||||||
fcd = Gtk.FileChooserDialog(_("Load Addon"),
|
fcd = Gtk.FileChooserDialog(_("Load Addon"),
|
||||||
|
parent=self.__uistate.window,
|
||||||
buttons=(_('_Cancel'),
|
buttons=(_('_Cancel'),
|
||||||
Gtk.ResponseType.CANCEL,
|
Gtk.ResponseType.CANCEL,
|
||||||
_('_Open'),
|
_('_Open'),
|
||||||
|
@ -938,6 +938,7 @@ class GeoGraphyView(OsmGps, NavigationView):
|
|||||||
kml = Gtk.FileChooserDialog(
|
kml = Gtk.FileChooserDialog(
|
||||||
_("Select a kml file used to add places"),
|
_("Select a kml file used to add places"),
|
||||||
action=Gtk.FileChooserAction.OPEN,
|
action=Gtk.FileChooserAction.OPEN,
|
||||||
|
parent=self.uistate.window,
|
||||||
buttons=(_('_Cancel'), Gtk.ResponseType.CANCEL,
|
buttons=(_('_Cancel'), Gtk.ResponseType.CANCEL,
|
||||||
_('_Apply'), Gtk.ResponseType.OK))
|
_('_Apply'), Gtk.ResponseType.OK))
|
||||||
mpath = HOME_DIR
|
mpath = HOME_DIR
|
||||||
@ -1182,6 +1183,7 @@ class GeoGraphyView(OsmGps, NavigationView):
|
|||||||
f = Gtk.FileChooserDialog(
|
f = Gtk.FileChooserDialog(
|
||||||
_("Select tile cache directory for offline mode"),
|
_("Select tile cache directory for offline mode"),
|
||||||
action=Gtk.FileChooserAction.SELECT_FOLDER,
|
action=Gtk.FileChooserAction.SELECT_FOLDER,
|
||||||
|
parent=self.uistate.window,
|
||||||
buttons=(_('_Cancel'),
|
buttons=(_('_Cancel'),
|
||||||
Gtk.ResponseType.CANCEL,
|
Gtk.ResponseType.CANCEL,
|
||||||
_('_Apply'),
|
_('_Apply'),
|
||||||
|
@ -690,6 +690,7 @@ class CheckIntegrity(object):
|
|||||||
logging.warning(' FAIL: references to missing file kept')
|
logging.warning(' FAIL: references to missing file kept')
|
||||||
|
|
||||||
fs_top = Gtk.FileChooserDialog("%s - Gramps" % _("Select file"),
|
fs_top = Gtk.FileChooserDialog("%s - Gramps" % _("Select file"),
|
||||||
|
parent=self.parent_window,
|
||||||
buttons=(_('_Cancel'), Gtk.ResponseType.CANCEL,
|
buttons=(_('_Cancel'), Gtk.ResponseType.CANCEL,
|
||||||
_('_OK'), Gtk.ResponseType.OK)
|
_('_OK'), Gtk.ResponseType.OK)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user