Combine the sidebar and bottombar functionality into a single class

svn: r16412
This commit is contained in:
Nick Hall
2011-01-19 14:40:39 +00:00
parent 92a77413a0
commit 9fe3d1fb8b
10 changed files with 189 additions and 351 deletions

View File

@@ -88,6 +88,13 @@ class GrampletView(PageView):
"""
return 'gramps-gramplet'
def define_actions(self):
"""
Defines the UIManager actions.
"""
self._add_action("AddGramplet", gtk.STOCK_ADD, _("Add a gramplet"))
self._add_action("RestoreGramplet", None, _("Restore a gramplet"))
def set_inactive(self):
self.active = False
self.widget.set_inactive()