Commit e3b340a4 authored by nkour's avatar nkour

fix a fixme

parent fc0400f7
......@@ -232,8 +232,7 @@ class GroupchatWindow(chat.Chat):
if not iter:
return None
while not fin:
# FIXME: why decode ?
role_name = model[iter][C_NICK].decode('utf-8')
role_name = model[iter][C_NICK]
if role == role_name:
return iter
iter = model.iter_next(iter)
......
......@@ -234,8 +234,8 @@ def parse_server_xml(path_to_file):
# handle exception parsing file
except xml.sax.SAXParseException, message:
print "Error parsing file:", message
def set_unset_urgency_hint(window, unread_messages_no):
def set_unset_urgency_hint(window, unread_messages_no):
'''sets/unsets urgency hint in window argument
depending if we have unread messages or not'''
if gtk.gtk_version >= (2, 8, 0) and gtk.pygtk_version >= (2, 8, 0):
......
......@@ -181,11 +181,11 @@ class Systray:
self.new_message_handler_id = new_message_menuitem.connect(
'activate', self.on_new_message_menuitem_activate, account)
if event is None: # None means windows (we explicitly popup in systraywin32.py)
#fixme: make me translatable or find a good way to workaround this
if event is None:
# None means windows (we explicitly popup in systraywin32.py)
if self.added_hide_menuitem is False:
self.systray_context_menu.prepend(gtk.SeparatorMenuItem())
item = gtk.MenuItem('Hide this menu')
item = gtk.MenuItem(_('Hide this menu'))
self.systray_context_menu.prepend(item)
self.added_hide_menuitem = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment