gtk:allow icons for labels

This commit is contained in:
Martijn Voncken 2008-10-24 18:20:58 +00:00
parent 56a3a03a59
commit 03d1177085
2 changed files with 3 additions and 2 deletions

View File

@ -95,7 +95,8 @@ class TrackerIcons(object):
def get_async(self, tracker_host, callback):
if tracker_host in self.images:
callback(self.images[tracker_host])
else:
elif "." in tracker_host:
#only find icon if there's a dot in the name.
self.images[tracker_host] = None
threading.Thread(target=self. _fetch_icon_thread,
args=(tracker_host, callback)).start()

View File

@ -194,7 +194,7 @@ class FilterTreeView(component.Component):
row = self.treestore.append(self.cat_nodes[cat],[cat, value, label, count , pix, True])
self.filters[(cat, value)] = row
if cat == "tracker_host":
if cat == "tracker_host" or cat == "label":
self.tracker_icons.get_async(value, lambda filename: self.set_row_image(cat, value, filename))
self.treestore.set_value(row, FILTER_COLUMN, True)