Info pane with new prefs

The information pane uses the new preferences tree now.
This commit is contained in:
Bryan Schumaker 2010-11-15 21:05:58 -05:00
parent 4335c1a111
commit a149b2f360
1 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ class TwoWayPane(InfoBar):
self.bar = self.contents
self.tab = InfoTab(self.down_button)
self.pack_start(self.tab)
if libsaria.prefs["INFOPANEUP"] == True:
if libsaria.prefs2.get_pref("ocarina.infopane.up") == True:
self.up_button()
else:
self.down_button()
@ -150,12 +150,12 @@ class TwoWayPane(InfoBar):
def up_button(self):
self.bar.hide()
self.tab.show()
libsaria.prefs["INFOPANEUP"] = True
libsaria.prefs2.set_pref("ocarina.infopane.up", True)
def down_button(self):
self.bar.show()
self.tab.hide()
libsaria.prefs["INFOPANEUP"] = False
libsaria.prefs2.set_pref("ocarina.infopane.up", False)
def init():