This commit is contained in:
Denis Fomin 2012-06-19 22:45:19 +04:00
parent 449f137dd7
commit 9cd4508550
1 changed files with 4 additions and 4 deletions

View File

@ -207,13 +207,13 @@ class BaseTooltip:
formatted = "<span foreground='%s'>%s</span>" formatted = "<span foreground='%s'>%s</span>"
color = None color = None
if affiliation.startswith(Q_("?Group Chat Contact Affiliation:None")): if affiliation.startswith(Q_("?Group Chat Contact Affiliation:None")):
color = gajim.conig.get('tooltip_affiliation_none_color') color = gajim.config.get('tooltip_affiliation_none_color')
elif affiliation.startswith(_("Member")): elif affiliation.startswith(_("Member")):
color = gajim.conig.get('tooltip_affiliation_member_color') color = gajim.config.get('tooltip_affiliation_member_color')
elif affiliation.startswith(_("Administrator")): elif affiliation.startswith(_("Administrator")):
color = gajim.conig.get('tooltip_affiliation_administrator_color') color = gajim.config.get('tooltip_affiliation_administrator_color')
elif affiliation.startswith(_("Owner")): elif affiliation.startswith(_("Owner")):
color = gajim.conig.get('tooltip_affiliation_owner_color') color = gajim.config.get('tooltip_affiliation_owner_color')
if color: if color:
affiliation = formatted % (color, affiliation) affiliation = formatted % (color, affiliation)
return affiliation return affiliation