Navigation menu fix
svn: r5065
This commit is contained in:
parent
3b370e1f0d
commit
3aae6812a7
@ -1,3 +1,6 @@
|
||||
2005-08-12 Don Allingham <don@gramps-project.org>
|
||||
* src/Navigation.py: Don't disable the interface all the time.
|
||||
|
||||
2005-08-12 Alex Roitman <shura@gramps-project.org>
|
||||
* src/ArgHandler.py: start fixing.
|
||||
* src/gramps_main.py: Run ArgHandler with new arguments.
|
||||
|
@ -80,7 +80,10 @@ class BaseNavigation:
|
||||
Builds the UI and action group.
|
||||
"""
|
||||
self.items = items
|
||||
self.disable()
|
||||
|
||||
if self.active != DISABLED:
|
||||
self.uistate.uimanager.remove_ui(self.active)
|
||||
self.uistate.uimanager.remove_action_group(self.action_group)
|
||||
|
||||
data = map(lambda x: '<menuitem action="%s%02d"/>' % (self.title,x), range(0,len(items)))
|
||||
self.ui = _top + "".join(data) + _btm
|
||||
@ -119,7 +122,7 @@ class PersonNavigation(BaseNavigation):
|
||||
Builds a name in the format of 'NAME [GRAMPSID]'
|
||||
"""
|
||||
person = self.uistate.dbstate.db.get_person_from_handle(item)
|
||||
name = "%s [%s]" % (NameDisplay.displayer.display(person),
|
||||
return "%s [%s]" % (NameDisplay.displayer.display(person),
|
||||
person.gramps_id)
|
||||
|
||||
def f0(self,obj):
|
||||
|
@ -251,7 +251,6 @@ class PersonNavView(PageView):
|
||||
|
||||
def change_page(self):
|
||||
hobj = self.uistate.phistory
|
||||
print hobj.at_end(), hobj.at_front()
|
||||
self.fwd_action.set_sensitive(not hobj.at_end())
|
||||
self.back_action.set_sensitive(not hobj.at_front())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user