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

@ -1156,7 +1156,6 @@ class ViewManager(CLIManager):
traceback.print_exc()
return
page.define_actions()
try:
page_display = page.get_display()
except:
@ -1164,11 +1163,12 @@ class ViewManager(CLIManager):
print("ERROR: '%s' failed to create view" % pdata.name)
traceback.print_exc()
return
page.define_actions()
page.post()
self.pages.append(page)
# create icon/label for workspace notebook
# create icon/label for notebook tab (useful for debugging)
hbox = gtk.HBox()
image = gtk.Image()
image.set_from_stock(page.get_stock(), gtk.ICON_SIZE_MENU)