ocarina: remember footer state
This commit is contained in:
parent
f8fb785ad0
commit
02d2b5c621
|
@ -5,6 +5,7 @@ import gobject
|
|||
|
||||
import tiny
|
||||
import detailed
|
||||
import libsaria
|
||||
from libsaria import audio
|
||||
|
||||
footer = gtk.VBox()
|
||||
|
@ -25,10 +26,18 @@ gobject.timeout_add(500, update_pos)
|
|||
def show_more():
|
||||
tiny.hide()
|
||||
detailed.show()
|
||||
libsaria.prefs.set_pref("ocarina.footer.up", True)
|
||||
|
||||
def show_less():
|
||||
tiny.show()
|
||||
detailed.hide()
|
||||
libsaria.prefs.set_pref("ocarina.footer.up", False)
|
||||
|
||||
up = libsaria.init_pref("ocarina.footer.up", False)
|
||||
if up == True:
|
||||
show_more()
|
||||
else:
|
||||
show_less()
|
||||
|
||||
def on_play():
|
||||
tiny.on_play()
|
||||
|
|
|
@ -34,7 +34,6 @@ add_button( "PAUSE", button.pause_button, False)
|
|||
add_button( "STOP", button.stop_button)
|
||||
add_button( "NEXT", button.next_button)
|
||||
add_button( "UP", button.up_button)
|
||||
tiny.show()
|
||||
|
||||
def update_pos(pos):
|
||||
cur_pos.set_text(pos)
|
||||
|
|
Loading…
Reference in New Issue
Block a user