From 702d033bff24f658be4357fa933397848aeb4b5c Mon Sep 17 00:00:00 2001 From: Sam Manzi Date: Fri, 18 Sep 2015 08:38:10 +1000 Subject: [PATCH] 8888 'Tagging dialogs' update help urls after wiki section update --- gramps/gui/editors/edittaglist.py | 2 +- gramps/gui/views/tags.py | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/gramps/gui/editors/edittaglist.py b/gramps/gui/editors/edittaglist.py index cee6ee9d1..459eec78f 100644 --- a/gramps/gui/editors/edittaglist.py +++ b/gramps/gui/editors/edittaglist.py @@ -45,7 +45,7 @@ from ..listmodel import ListModel, TOGGLE # #------------------------------------------------------------------------- WIKI_HELP_PAGE = '%s_-_Filters' % URL_MANUAL_PAGE -WIKI_HELP_SEC = _('manual|Tagging') +WIKI_HELP_SEC = _('manual|Tag_selection_dialog') #------------------------------------------------------------------------- # diff --git a/gramps/gui/views/tags.py b/gramps/gui/views/tags.py index 1e6575fe3..9e9bae245 100644 --- a/gramps/gui/views/tags.py +++ b/gramps/gui/views/tags.py @@ -83,7 +83,8 @@ TAG_3 = ''' WIKI_HELP_PAGE = '%s_-_Filters' % \ URL_MANUAL_PAGE -WIKI_HELP_SEC = _('manual|Tagging') +WIKI_HELP_SEC = _('manual|Organize_Tags_Window') +WIKI_HELP_SEC2 = _('manual|New_Tag_dialog') #------------------------------------------------------------------------- # @@ -552,7 +553,14 @@ class EditTag(object): """ Run the dialog and return the result. """ - response = self.top.run() + while True: + response = self.top.run() + if response == Gtk.ResponseType.HELP: + display_help(webpage=WIKI_HELP_PAGE, + section=WIKI_HELP_SEC2) + else: + break + if response == Gtk.ResponseType.OK: self._save() self.top.destroy() @@ -616,6 +624,7 @@ class EditTag(object): hbox.pack_start(self.entry, True, True, 5) hbox.pack_start(self.color, False, False, 5) + top.add_button(_('_Help'), Gtk.ResponseType.HELP) top.add_button(_('_OK'), Gtk.ResponseType.OK) top.add_button(_('_Cancel'), Gtk.ResponseType.CANCEL) top.show_all()