Remove unused function, add comment on a callback

svn: r14370
This commit is contained in:
Benny Malengier 2010-02-14 20:24:15 +00:00
parent 17d6222e70
commit 862e2f49ec

View File

@ -319,6 +319,10 @@ class ListView(NavigationView):
return hpaned
def filter_toggle(self, client, cnxn_id, entry, data):
"""
Callback on change interface.filter, inheriting methods connect to
change in ini file
"""
if config.get('interface.filter'):
self.search_bar.hide()
self.filter_pane.show()
@ -343,18 +347,6 @@ class ListView(NavigationView):
def filter_clicked(self):
self.generic_filter = self.filter_sidebar.get_filter()
self.build_tree()
def filter_toggle_action(self, obj):
if obj.get_active():
self.search_bar.hide()
self.filter_pane.show()
active = True
else:
self.search_bar.show()
self.filter_pane.hide()
active = False
config.set('interface.filter', active)
self.build_tree()
def filter_editor(self, obj):
try: