changes for wiki manual
svn: r11139
This commit is contained in:
parent
a28c5b2445
commit
e257ec823d
@ -53,7 +53,7 @@ from TransUtils import sgettext as _
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
WIKI_HELP_PAGE = 'Gramps_3.0_Wiki_Manual_-_Tools'
|
WIKI_HELP_PAGE = 'Gramps_3.0_Wiki_Manual_-_Tools'
|
||||||
WIKI_HELP_SEC = _('manual|Interactive_Descendant_Browser')
|
WIKI_HELP_SEC = _('manual|Interactive_Descendant_Browser...')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,6 +33,20 @@
|
|||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkButton" id="help">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_default">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="label">gtk-help</property>
|
||||||
|
<property name="use_stock">True</property>
|
||||||
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
|
<property name="focus_on_click">True</property>
|
||||||
|
<property name="response_id">-11</property>
|
||||||
|
<signal name="clicked" handler="on_help_clicked" object="top"/>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkButton" id="close">
|
<widget class="GtkButton" id="close">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
import os
|
import os
|
||||||
from gettext import gettext as _
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -49,10 +49,18 @@ from Editors import EditPerson, EditFamily
|
|||||||
from QuestionDialog import WarningDialog
|
from QuestionDialog import WarningDialog
|
||||||
import ManagedWindow
|
import ManagedWindow
|
||||||
import Utils
|
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) :
|
class NotRelated(ManagedWindow.ManagedWindow) :
|
||||||
@ -67,7 +75,10 @@ class NotRelated(ManagedWindow.ManagedWindow) :
|
|||||||
self.db = dbstate.db
|
self.db = dbstate.db
|
||||||
glade_file = "%s/NotRelated.glade" % os.path.dirname(__file__)
|
glade_file = "%s/NotRelated.glade" % os.path.dirname(__file__)
|
||||||
topDialog = gtk.glade.XML(glade_file, "top", "gramps")
|
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")
|
window = topDialog.get_widget("top")
|
||||||
title = topDialog.get_widget("title")
|
title = topDialog.get_widget("title")
|
||||||
@ -198,6 +209,9 @@ class NotRelated(ManagedWindow.ManagedWindow) :
|
|||||||
except Errors.WindowActiveError:
|
except Errors.WindowActiveError:
|
||||||
pass
|
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) :
|
def applyMarkerClicked(self, button) :
|
||||||
progress = None
|
progress = None
|
||||||
|
Loading…
Reference in New Issue
Block a user