This commit is contained in:
Nikos Kouremenos 2005-05-31 17:48:22 +00:00
parent 19e7cd6fb5
commit 490f24e86c
2 changed files with 7 additions and 6 deletions

View File

@ -22,7 +22,7 @@
<signal name="delete_event" handler="on_roster_window_delete_event" last_modification_time="Mon, 21 Mar 2005 12:34:59 GMT"/>
<child>
<widget class="GtkVBox" id="vbox1">
<widget class="GtkVBox" id="roster_vbox">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>

View File

@ -383,8 +383,8 @@ class Roster_window:
array[jid]['subscription'], array[jid]['ask'], resource, 0,
keyID)
# when we draw the roster, we can't have twice the same
# user with 2 resources
# when we draw the roster, we avoid having the same contact
# more than once (eg. we avoid showing it twice with 2 resources)
self.contacts[account][ji] = [user1]
for g in array[jid]['groups'] :
if g in self.groups[account].keys():
@ -977,7 +977,7 @@ class Roster_window:
keyID = attached_keys[attached_keys.index(jid) + 1]
user1 = User(jid, jid, ['not in the roster'], 'not in the roster',
'not in the roster', 'none', None, '', 0, keyID)
self.contacts[account][jid] = [user1]
self.contacts[account][jid] = [user1]
self.add_user_to_roster(jid, account)
iters = self.get_user_iter(jid, account)
if iters:
@ -1207,7 +1207,7 @@ class Roster_window:
#model.set_value(iter, 5, False)
pass
def on_cell_edited (self, cell, row, new_text):
def on_cell_edited(self, cell, row, new_text):
'''When an iter is editer :
if text has changed, rename the user'''
model = self.tree.get_model()
@ -1545,7 +1545,8 @@ class Roster_window:
liststore = gtk.ListStore(gobject.TYPE_STRING, gtk.Image,
gobject.TYPE_STRING)
self.status_combobox = gtk.ComboBox()
self.xml.get_widget('vbox1').pack_end(self.status_combobox, False)
roster_vbox = self.xml.get_widget('roster_vbox')
roster_vbox.pack_end(self.status_combobox, False)
cell = cell_renderer_image.CellRendererImage()
self.status_combobox.pack_start(cell, False)
self.status_combobox.add_attribute(cell, 'image', 1)