From 78d0439d6f9b148e03e4d0bd8106857e1607e3a1 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 14 May 2009 18:16:16 +0000 Subject: [PATCH] Move countries.py to ui/ since it's only used by the UIs --- deluge/{ => ui}/countries.py | 0 deluge/ui/gtkui/peers_tab.py | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename deluge/{ => ui}/countries.py (100%) diff --git a/deluge/countries.py b/deluge/ui/countries.py similarity index 100% rename from deluge/countries.py rename to deluge/ui/countries.py diff --git a/deluge/ui/gtkui/peers_tab.py b/deluge/ui/gtkui/peers_tab.py index 20c948341..a78ed052f 100644 --- a/deluge/ui/gtkui/peers_tab.py +++ b/deluge/ui/gtkui/peers_tab.py @@ -39,7 +39,7 @@ import deluge.ui.gtkui.common as common from deluge.ui.gtkui.listview import cell_data_speed as cell_data_speed from deluge.ui.gtkui.torrentdetails import Tab from deluge.log import LOG as log -from deluge.countries import COUNTRIES +from deluge.ui.countries import COUNTRIES def cell_data_progress(column, cell, model, row, data): value = model.get_value(row, data) @@ -350,12 +350,12 @@ class PeersTab(Tab): return False else: model, path, iter = widget.get_tooltip_context(x, y, keyboard_tip) - + country_code = model.get(iter, 5)[0] if country_code != " " and country_code in COUNTRIES: tooltip.set_text(COUNTRIES[country_code]) # widget here is self.listview - widget.set_tooltip_cell(tooltip, path, widget.get_column(0), + widget.set_tooltip_cell(tooltip, path, widget.get_column(0), None) return True else: