ocarina: Remove old body code

This commit is contained in:
Bryan Schumaker 2011-04-24 09:36:31 -04:00
parent 3b8411f175
commit 40751a9eed
2 changed files with 0 additions and 46 deletions

View File

@ -49,31 +49,3 @@ shortcuts.register_shortcut("g", cur_page_goto)
def cur_page_clear():
current_page().clear()
#import ocarina
#Label = gtk.Label
#prefs = ocarina.libsaria.prefs
#get_pref = prefs.get_pref
#set_pref = prefs.set_pref
#def init_page(page_name):
#page = prefs.init_pref("ocarina.body.page", page_name)
#child = contents.get(page, None)
#if child == None:
#child = contents.get(page_name)
#num = body.page_num(child)
#body.set_current_page(num)
#child.visible()
#body.connect("switch-page", switch_page)
#def switch_page(notebook, page, pagenum):
#cur_num = body.get_current_page()
#child = body.get_nth_page(cur_num)
#next_pg = body.get_nth_page(pagenum)
#next = None
#for name, item in contents.iteritems():
#if item == next_pg:
#next = name
#set_pref("ocarina.body.page", next)
#child.invisible()
#next_pg.visible()

View File

@ -42,21 +42,3 @@ class OcarinaPage(gtk.Table):
def clear(self):
pass
#def visible(self):
#if self.add_header == True:
#self.pack_start(header.header, False, False)
#self.pack_start(self.content, True, True)
#if self.add_footer == True:
#self.pack_start(footer.footer, False, False)
#if self.vis_func:
#self.vis_func()
#def invisible(self):
#if self.add_header == True:
#self.remove(header.header)
#self.remove(self.content)
#if self.add_footer == True:
#self.remove(footer.footer)
#if self.invis_func:
#self.invis_func()