8128: GtkDialog mapped without a transient parent (*.gpr.py)

This commit is contained in:
Paul Franklin 2016-09-11 15:05:51 -07:00
parent 84047260c6
commit 645bef8f5d
2 changed files with 14 additions and 6 deletions

View File

@ -422,9 +422,13 @@ else:
message = _("Image metadata functionality will not be available.\n" message = _("Image metadata functionality will not be available.\n"
"To build it for Gramps see " "To build it for Gramps see "
"%(gramps_wiki_build_gexiv2_url)s" % gexiv2_dict ) "%(gramps_wiki_build_gexiv2_url)s" % gexiv2_dict )
if uistate:
MessageHideDialog(title, message, MessageHideDialog(title, message,
'interface.ignore-gexiv2', 'interface.ignore-gexiv2',
parent=uistate.window) parent=uistate.window)
else:
MessageHideDialog(title, message,
'interface.ignore-gexiv2')
register(GRAMPLET, register(GRAMPLET,
id="Person Residence", id="Person Residence",

View File

@ -72,9 +72,13 @@ if not OSMGPSMAP:
MESSAGE = _("Geography functionality will not be available.\n" MESSAGE = _("Geography functionality will not be available.\n"
"To build it for Gramps see " "To build it for Gramps see "
"%(gramps_wiki_build_osmgps_url)s") % OSMGPS_DICT "%(gramps_wiki_build_osmgps_url)s") % OSMGPS_DICT
if uistate:
MessageHideDialog(TITLE, MESSAGE, MessageHideDialog(TITLE, MESSAGE,
'interface.ignore-osmgpsmap', 'interface.ignore-osmgpsmap',
parent=uistate.window) parent=uistate.window)
else:
MessageHideDialog(TITLE, MESSAGE,
'interface.ignore-osmgpsmap')
else: else:
# Load the view only if osmgpsmap library is present. # Load the view only if osmgpsmap library is present.
register(VIEW, register(VIEW,