Bug 2888 - minor edits and cleanup
svn: r12529
This commit is contained in:
@ -170,12 +170,18 @@ class PackageWriter:
|
||||
sys.getfilesystemencoding())
|
||||
if os.path.isfile(name):
|
||||
archive.add(name)
|
||||
|
||||
fs_top = gtk.FileChooserDialog("%s - GRAMPS" % _("Select file"),
|
||||
buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
|
||||
gtk.STOCK_OK, gtk.RESPONSE_OK)
|
||||
)
|
||||
s
|
||||
response = fs_top.run()
|
||||
if response == gtk.RESPONSE_OK:
|
||||
fs_ok_clicked(fs_top)
|
||||
elif response == gtk.RESPONSE_CANCEL:
|
||||
fs_close_window(fs_top)
|
||||
|
||||
fs_top = gtk.FileSelection("%s - GRAMPS" % _("Select file"))
|
||||
fs_top.hide_fileop_buttons()
|
||||
fs_top.ok_button.connect('clicked',fs_ok_clicked)
|
||||
fs_top.cancel_button.connect('clicked',fs_close_window)
|
||||
fs_top.run()
|
||||
fs_top.destroy()
|
||||
#---------------------------------------------------------------
|
||||
|
||||
@ -242,4 +248,4 @@ plugin = ExportPlugin(name = _('GRAM_PS package (portable XML)'),
|
||||
export_function = writeData,
|
||||
extension = "gpkg",
|
||||
config = _config )
|
||||
pmgr.register_plugin(plugin)
|
||||
pmgr.register_plugin(plugin)
|
||||
|
Reference in New Issue
Block a user