Merge branch 'master' of file:///home/bjschuma/public_html/git/ocarina
This commit is contained in:
commit
685bd54bcb
|
@ -140,14 +140,20 @@ class TwoWayPane(InfoBar):
|
||||||
self.bar = self.contents
|
self.bar = self.contents
|
||||||
self.tab = InfoTab(self.down_button)
|
self.tab = InfoTab(self.down_button)
|
||||||
self.pack_start(self.tab)
|
self.pack_start(self.tab)
|
||||||
|
if libsaria.prefs["INFOPANEUP"] == True:
|
||||||
|
self.up_button()
|
||||||
|
else:
|
||||||
|
self.down_button()
|
||||||
|
|
||||||
def up_button(self):
|
def up_button(self):
|
||||||
self.bar.hide()
|
self.bar.hide()
|
||||||
self.tab.show()
|
self.tab.show()
|
||||||
|
libsaria.prefs["INFOPANEUP"] = True
|
||||||
|
|
||||||
def down_button(self):
|
def down_button(self):
|
||||||
self.bar.show()
|
self.bar.show()
|
||||||
self.tab.hide()
|
self.tab.hide()
|
||||||
|
libsaria.prefs["INFOPANEUP"] = False
|
||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
|
@ -165,6 +171,7 @@ def init():
|
||||||
import label
|
import label
|
||||||
import image
|
import image
|
||||||
|
|
||||||
|
libsaria.init_pref("INFOPANEUP", False)
|
||||||
info = TwoWayPane()
|
info = TwoWayPane()
|
||||||
filter = FilterBar()
|
filter = FilterBar()
|
||||||
add_info_page("Now Playing", NowPlaying())
|
add_info_page("Now Playing", NowPlaying())
|
||||||
|
|
Loading…
Reference in New Issue