Only show mood in account row when show_mood_in_roster_is active.

This commit is contained in:
js 2008-07-25 01:16:30 +00:00
parent 5958bb8771
commit 0653680203
1 changed files with 4 additions and 2 deletions

View File

@ -974,13 +974,15 @@ class RosterWindow:
self.model[child_iter][C_NAME] = account_name self.model[child_iter][C_NAME] = account_name
if gajim.connections[account].mood.has_key('mood') \ if gajim.config.get('show_mood_in_roster') \
and gajim.connections[account].mood.has_key('mood') \
and gajim.connections[account].mood['mood'] in MOODS: and gajim.connections[account].mood['mood'] in MOODS:
self.model[child_iter][C_MOOD_PIXBUF] = \ self.model[child_iter][C_MOOD_PIXBUF] = \
gtkgui_helpers.load_mood_icon( gtkgui_helpers.load_mood_icon(
gajim.connections[account].mood['mood']). \ gajim.connections[account].mood['mood']). \
get_pixbuf() get_pixbuf()
elif gajim.connections[account].mood.has_key('mood'): elif gajim.config.get('show_mood_in_roster') \
and gajim.connections[account].mood.has_key('mood'):
self.model[child_iter][C_MOOD_PIXBUF] = \ self.model[child_iter][C_MOOD_PIXBUF] = \
gtkgui_helpers.load_mood_icon('unknown'). \ gtkgui_helpers.load_mood_icon('unknown'). \
get_pixbuf() get_pixbuf()