Filters: Fix broken show/hide button for Graphing Options

Patch from scott@wolchok.org
This commit is contained in:
Worros 2011-02-24 15:00:03 +08:00
parent c409b717a9
commit ddb45ff8c3

View File

@ -830,11 +830,16 @@ class Filters(threading.Thread):
top_hbox.pack_start(title, expand=True, padding=3)
showb = gtk.Button(label="hide", stock=None, use_underline=True)
showb.set_alignment(xalign=1.0, yalign=0.5)
showb.connect('clicked', self.__toggle_box, 'games')
showb.connect('clicked', self.__toggle_box, 'graphops')
top_hbox.pack_start(showb, expand=False, padding=1)
vbox1 = gtk.VBox(False, 0)
vbox.pack_start(vbox1, False, False, 0)
vbox1.show()
self.boxes['graphops'] = vbox1
hbox1 = gtk.HBox(False, 0)
vbox.pack_start(hbox1, False, False, 0)
vbox1.pack_start(hbox1, False, False, 0)
hbox1.show()
label = gtk.Label(_("Show Graph In:"))
@ -853,10 +858,6 @@ class Filters(threading.Thread):
button.connect("toggled", self.__set_displayin_select, "BB")
button.show()
vbox1 = gtk.VBox(False, 0)
vbox.pack_start(vbox1, False, False, 0)
vbox1.show()
button = gtk.CheckButton(_("Showdown Winnings"), False)
vbox1.pack_start(button, True, True, 0)
# wouldn't it be awesome if there was a way to remember the state of things like