Some minor code cleanups. Closes #318.

This commit is contained in:
Sadrul Habib Chowdhury 2008-07-03 22:16:15 +00:00
parent 7427389739
commit 5d9d8a6741
2 changed files with 2 additions and 12 deletions

View File

@ -102,7 +102,6 @@ class FilesTab(Tab):
self.listview = glade.get_widget("files_listview")
# filename, size, progress string, progress value, priority, file index, icon id
self.liststore = gtk.ListStore(str, gobject.TYPE_UINT64, str, int, int, int)
self.treestore = gtk.TreeStore(str, gobject.TYPE_UINT64, str, int, int, int, str)
# Filename column

View File

@ -106,15 +106,6 @@ class SideBar(component.Component):
value = model.get_value(row, 0)
if value == "All":
component.get("TorrentView").set_filter(None, None)
if value == "Downloading":
component.get("TorrentView").set_filter("state",
"Downloading")
if value == "Seeding":
component.get("TorrentView").set_filter("state", "Seeding")
if value == "Queued":
component.get("TorrentView").set_filter("state", "Queued")
if value == "Paused":
component.get("TorrentView").set_filter("state", "Paused")
if value == "Error":
component.get("TorrentView").set_filter("state", "Error")
else:
component.get("TorrentView").set_filter("state", value)