ocarina: remove commented out code from footer
This commit is contained in:
parent
02d2b5c621
commit
096564c942
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user