fix groups combobox in add contact dialog. Fixes #5584

This commit is contained in:
Yann Leboulanger 2010-01-29 19:16:48 +01:00
parent 7a07d32b49
commit b56de4fea8
2 changed files with 3 additions and 10 deletions

View File

@ -196,13 +196,8 @@
<child>
<object class="GtkComboBoxEntry" id="group_comboboxentry">
<property name="visible">True</property>
<property name="model">liststore1</property>
<child>
<object class="GtkCellRendererText" id="cellrenderertext1"/>
<attributes>
<attribute name="text">0</attribute>
</attributes>
</child>
<property name="model">groups_liststore</property>
<property name="text_column">0</property>
</object>
<packing>
<property name="left_attach">1</property>
@ -375,7 +370,7 @@ to add a contact from this protocol.</property>
<object class="GtkTextBuffer" id="textbuffer1">
<property name="text" translatable="yes">I would like to add you to my contact list.</property>
</object>
<object class="GtkListStore" id="liststore1">
<object class="GtkListStore" id="groups_liststore">
<columns>
<!-- column-name item -->
<column type="gchararray"/>

View File

@ -896,8 +896,6 @@ _('Please fill in the data of the contact you want to add in account %s') % acco
if not jid_ in self.agents[type_]:
self.agents[type_].append(jid_)
self.available_types.append(type_)
liststore = gtk.ListStore(str)
self.group_comboboxentry.set_model(liststore)
# Combobox with transport/jabber icons
liststore = gtk.ListStore(str, gtk.gdk.Pixbuf, str)
cell = gtk.CellRendererPixbuf()