2010-12-12 13:46:49 -05:00
|
|
|
# Bryan Schumaker (12/12/2010)
|
|
|
|
|
|
|
|
import ocarina
|
|
|
|
from ocarina import body
|
|
|
|
from ocarina import source
|
|
|
|
import menu
|
|
|
|
|
|
|
|
gtk = ocarina.gtk
|
|
|
|
sources = ocarina.libsaria.sources
|
|
|
|
queue = sources.queue
|
|
|
|
visible = queue.is_visible
|
|
|
|
|
|
|
|
queue_page = source.Source()
|
|
|
|
|
|
|
|
def init():
|
|
|
|
body.add_page("Queue", queue_page)
|
|
|
|
sources.init_src(queue.init_bg, filler)
|
|
|
|
|
|
|
|
def filler():
|
|
|
|
queue_page.init(filter, is_visible, right_click, queue.play_id, reset)
|
|
|
|
|
|
|
|
def filter(text):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def is_visible(list, iter):
|
|
|
|
return True
|
|
|
|
|
|
|
|
def reset():
|
|
|
|
pass
|
|
|
|
|
2010-12-12 13:54:38 -05:00
|
|
|
def refresh(*args):
|
|
|
|
queue_page.clear()
|
|
|
|
|
2010-12-12 13:46:49 -05:00
|
|
|
def right_click(button, time):
|
|
|
|
pass
|