fix file chooser's deprecation warnings in import dialog
This commit is contained in:
parent
1991d194fa
commit
e95fe692ba
@ -391,13 +391,11 @@ class GrampsImportFileDialog(ManagedWindow):
|
|||||||
|
|
||||||
pmgr = GuiPluginManager.get_instance()
|
pmgr = GuiPluginManager.get_instance()
|
||||||
|
|
||||||
import_dialog = Gtk.FileChooserDialog('',
|
import_dialog = Gtk.FileChooserDialog(
|
||||||
self.uistate.window,
|
title='', transient_for=self.uistate.window,
|
||||||
Gtk.FileChooserAction.OPEN,
|
action=Gtk.FileChooserAction.OPEN)
|
||||||
(_('_Cancel'),
|
import_dialog.add_buttons(_('_Cancel'), Gtk.ResponseType.CANCEL,
|
||||||
Gtk.ResponseType.CANCEL,
|
_('Import'), Gtk.ResponseType.OK)
|
||||||
_('Import'),
|
|
||||||
Gtk.ResponseType.OK))
|
|
||||||
self.set_window(import_dialog, None, self.title)
|
self.set_window(import_dialog, None, self.title)
|
||||||
self.setup_configs('interface.grampsimportfiledialog', 780, 630)
|
self.setup_configs('interface.grampsimportfiledialog', 780, 630)
|
||||||
import_dialog.set_local_only(False)
|
import_dialog.set_local_only(False)
|
||||||
|
Loading…
Reference in New Issue
Block a user