Move countries.py to ui/ since it's only used by the UIs

This commit is contained in:
Andrew Resch 2009-05-14 18:16:16 +00:00
parent 19e21606cd
commit 78d0439d6f
2 changed files with 3 additions and 3 deletions

View File

@ -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: