8888 'Tagging dialogs' update help urls after wiki section update

This commit is contained in:
Sam Manzi 2015-09-18 08:38:10 +10:00
parent 60ccf59ae5
commit 702d033bff
2 changed files with 12 additions and 3 deletions

View File

@ -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')
#-------------------------------------------------------------------------
#

View File

@ -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()