2007-01-25 Don Allingham <don@gramps-project.org>
* src/DataViews/_MediaView.py: fix goto-gramps-id key press * src/DataViews/_RepositoryView.py: fix goto-gramps-id key press * src/DataViews/_SourceView.py: fix goto-gramps-id key press * src/DataViews/_EventView.py: fix goto-gramps-id key press * src/DataViews/_FamilyList.py: fix goto-gramps-id key press * src/DataViews/_PedigreeView.py: fix goto-gramps-id key press * src/DataViews/_PlaceView.py: fix goto-gramps-id key press * src/DataViews/_PersonView.py: fix goto-gramps-id key press * src/DataViews/_RelationView.py: fix goto-gramps-id key press * src/ViewManager.py: fix goto-gramps-id key press * src/PageView.py: fix goto-gramps-id key press svn: r7984
This commit is contained in:
@@ -86,6 +86,10 @@ class EventView(PageView.ListView):
|
||||
'event-rebuild' : self.build_tree,
|
||||
}
|
||||
|
||||
self.func_list = {
|
||||
'<CONTROL>J' : self.jump,
|
||||
}
|
||||
|
||||
PageView.ListView.__init__(
|
||||
self, _('Events'), dbstate, uistate,
|
||||
column_names, len(column_names), DisplayModels.EventModel,
|
||||
@@ -160,6 +164,13 @@ class EventView(PageView.ListView):
|
||||
self.add_action('FilterEdit', None, _('Event Filter Editor'),
|
||||
callback=self.filter_editor,)
|
||||
|
||||
def get_handle_from_gramps_id(self, gid):
|
||||
obj = self.dbstate.db.get_event_from_gramps_id(gid)
|
||||
if obj:
|
||||
return obj.get_handle()
|
||||
else:
|
||||
return None
|
||||
|
||||
def column_editor(self, obj):
|
||||
import ColumnOrder
|
||||
|
||||
|
Reference in New Issue
Block a user