diff --git a/src/plugins/Desbrowser.py b/src/plugins/Desbrowser.py index 4543ec9f5..8b9b23933 100644 --- a/src/plugins/Desbrowser.py +++ b/src/plugins/Desbrowser.py @@ -53,7 +53,7 @@ from TransUtils import sgettext as _ # #------------------------------------------------------------------------ WIKI_HELP_PAGE = 'Gramps_3.0_Wiki_Manual_-_Tools' -WIKI_HELP_SEC = _('manual|Interactive_Descendant_Browser') +WIKI_HELP_SEC = _('manual|Interactive_Descendant_Browser...') diff --git a/src/plugins/NotRelated.glade b/src/plugins/NotRelated.glade index e11ecfea9..d370df292 100644 --- a/src/plugins/NotRelated.glade +++ b/src/plugins/NotRelated.glade @@ -33,6 +33,20 @@ True GTK_BUTTONBOX_END + + + True + True + True + gtk-help + True + GTK_RELIEF_NORMAL + True + -11 + + + + True diff --git a/src/plugins/NotRelated.py b/src/plugins/NotRelated.py index 64529a5f5..ef1241dc8 100644 --- a/src/plugins/NotRelated.py +++ b/src/plugins/NotRelated.py @@ -28,7 +28,7 @@ # #------------------------------------------------------------------------ import os -from gettext import gettext as _ + #------------------------------------------------------------------------ # @@ -49,10 +49,18 @@ from Editors import EditPerson, EditFamily from QuestionDialog import WarningDialog import ManagedWindow import Utils +from TransUtils import sgettext as _ +#------------------------------------------------------------------------- +# +# Constants +# +#------------------------------------------------------------------------- +WIKI_HELP_PAGE = 'Gramps_3.0_Wiki_Manual_-_Tools' +WIKI_HELP_SEC = _('manual|Not_Related...') #------------------------------------------------------------------------ # -# +# NotRelated.py # #------------------------------------------------------------------------ class NotRelated(ManagedWindow.ManagedWindow) : @@ -67,7 +75,10 @@ class NotRelated(ManagedWindow.ManagedWindow) : self.db = dbstate.db glade_file = "%s/NotRelated.glade" % os.path.dirname(__file__) topDialog = gtk.glade.XML(glade_file, "top", "gramps") - topDialog.signal_autoconnect({"destroy_passed_object" : self.close}) + topDialog.signal_autoconnect({ + "destroy_passed_object" : self.close, + "on_help_clicked" : self.on_help_clicked, + }) window = topDialog.get_widget("top") title = topDialog.get_widget("title") @@ -198,6 +209,9 @@ class NotRelated(ManagedWindow.ManagedWindow) : except Errors.WindowActiveError: pass + def on_help_clicked(self, obj): + """Display the relevant portion of GRAMPS manual""" + GrampsDisplay.help(WIKI_HELP_PAGE , WIKI_HELP_SEC) def applyMarkerClicked(self, button) : progress = None