From 096564c942f30a2227a6e7c14d06d398b0ba29d4 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Fri, 22 Apr 2011 17:41:24 -0400 Subject: [PATCH] ocarina: remove commented out code from footer --- ocarina/body/footer/__init__.py | 61 --------------------------------- 1 file changed, 61 deletions(-) diff --git a/ocarina/body/footer/__init__.py b/ocarina/body/footer/__init__.py index 27f47243..cd70da35 100644 --- a/ocarina/body/footer/__init__.py +++ b/ocarina/body/footer/__init__.py @@ -54,35 +54,6 @@ def on_load(): def on_like(): detailed.nowplaying.on_like() -#import gtk -#import pango -#import ocarina -#import libsaria - -#from ocarina.components import label -#from ocarina.components import button -#from ocarina.components import pbar -#from ocarina.components import image - -#footer = gtk.VBox() -#bar = gtk.HBox() -#title = gtk.Label() -#tabs = gtk.Notebook() -#act_bar = gtk.HBox() - -#pages = dict() - -#def change_title(filepath): - #id = libsaria.path.file_id(filepath) - #(ttl, artst) = libsaria.sources.library.get_attrs(id, "title", "artist") - #title.set_text("%s by %s" % (ttl, artst)) - -#def bar_add(widget, expand = False, fill = False): - #bar.pack_start(widget, expand, fill) - -#def act_bar_add(widget, expand = False, fill = False): - #act_bar.pack_start(widget, expand, fill) - #def add_page(title, widget): #label = gtk.Label(title) #pages[title] = widget @@ -96,16 +67,6 @@ def on_like(): #tabs.remove_page(n) #del pages[title] -#def up_button(): - #tabs.show() - #bar.hide() - #libsaria.prefs.set_pref("ocarina.footer.up", True) - -#def down_button(): - #tabs.hide() - #bar.show() - #libsaria.prefs.set_pref("ocarina.footer.up", False) - #def make_bar(): #title.set_text(ocarina.__vers__) #title.set_ellipsize(pango.ELLIPSIZE_END) @@ -168,25 +129,3 @@ def on_like(): #page.show_all() #add_page("Now Playing", page) - -#def make_tabs(): - #make_action_bar() - #tabs.set_action_widget(act_bar, gtk.PACK_END) - #make_now_playing_page() - #tabs.show_all() - #footer.pack_start(tabs) - -#def init(): - #sep = gtk.HSeparator() - #footer.pack_start(sep) - #footer.show_all() - #make_bar() - #make_tabs() - - #up = libsaria.init_pref("ocarina.footer.up", False) - #if up == True: - #up_button() - #else: - #down_button() - #libsaria.event.invite("POSTLOAD", change_title) -#init()