spaces are ='s neighboor

This commit is contained in:
Vincent Hanquez 2003-10-23 20:31:52 +00:00
parent 869eb8e5d7
commit 8fb014e28e
1 changed files with 9 additions and 8 deletions

View File

@ -133,22 +133,22 @@ class roster:
if data[1] == 'offline': if data[1] == 'offline':
self.treestore.remove(iter) self.treestore.remove(iter)
if not self.showOffline: if not self.showOffline:
self.found=1 self.found = 1
else: else:
self.treestore.set_value(iter, 0, self.pixbufs[data[1]]) self.treestore.set_value(iter, 0, self.pixbufs[data[1]])
self.found=1 self.found = 1
return 1 return 1
return 0 return 0
def chg_status(self, jid, show, status): def chg_status(self, jid, show, status):
for u in self.l_contact: for u in self.l_contact:
if u.name == jid: if u.name == jid:
self.found=0 self.found = 0
self.treestore.foreach(self.update_iter, (jid, show)) self.treestore.foreach(self.update_iter, (jid, show))
if self.found==0: if self.found == 0:
if not self.l_group.has_key(u.group): if not self.l_group.has_key(u.group):
iterG = self.treestore.append(None, (self.pixbufs['online'], u.group, 'group')) iterG = self.treestore.append(None, (self.pixbufs['online'], u.group, 'group'))
self.l_group[u.group]=iterG self.l_group[u.group] = iterG
self.treestore.append(self.l_group[u.group], (self.pixbufs[show], u.name, show)) self.treestore.append(self.l_group[u.group], (self.pixbufs[show], u.name, show))
u.show = show u.show = show
u.status = status u.status = status
@ -230,11 +230,12 @@ class roster:
self.optionmenu = self.xml.get_widget('optionmenu') self.optionmenu = self.xml.get_widget('optionmenu')
self.optionmenu.set_history(6) self.optionmenu.set_history(6)
self.tab_messages = {} self.tab_messages = {}
showOffline=self.cfgParser.GtkGui_showoffline
showOffline = self.cfgParser.GtkGui_showoffline
if showOffline : if showOffline :
self.showOffline=string.atoi(self.cfgParser.GtkGui_showoffline) self.showOffline = string.atoi(showOffline)
else : else :
self.showOffline=0 self.showOffline = 0
#colonnes #colonnes
self.col = gtk.TreeViewColumn() self.col = gtk.TreeViewColumn()