Bug 2888 - minor edits and cleanup
svn: r12529
This commit is contained in:
@@ -66,13 +66,6 @@ from QuestionDialog import OkDialog, MissingMediaDialog
|
||||
from BasicUtils import name_displayer as _nd
|
||||
from glade import Glade
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Constants
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
_GLADE_FILE = "summary.glade"
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Low Level repair
|
||||
@@ -543,11 +536,15 @@ class CheckIntegrity:
|
||||
else:
|
||||
self.bad_photo.append(ObjectId)
|
||||
|
||||
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 = gtk.FileChooserDialog("%s - GRAMPS" % _("Select file"),
|
||||
buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
|
||||
gtk.STOCK_OK, gtk.RESPONSE_OK)
|
||||
)
|
||||
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.destroy()
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user