fix groups combobox in add contact dialog. Fixes #5584
This commit is contained in:
parent
7a07d32b49
commit
b56de4fea8
|
@ -196,13 +196,8 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkComboBoxEntry" id="group_comboboxentry">
|
<object class="GtkComboBoxEntry" id="group_comboboxentry">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="model">liststore1</property>
|
<property name="model">groups_liststore</property>
|
||||||
<child>
|
<property name="text_column">0</property>
|
||||||
<object class="GtkCellRendererText" id="cellrenderertext1"/>
|
|
||||||
<attributes>
|
|
||||||
<attribute name="text">0</attribute>
|
|
||||||
</attributes>
|
|
||||||
</child>
|
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left_attach">1</property>
|
<property name="left_attach">1</property>
|
||||||
|
@ -375,7 +370,7 @@ to add a contact from this protocol.</property>
|
||||||
<object class="GtkTextBuffer" id="textbuffer1">
|
<object class="GtkTextBuffer" id="textbuffer1">
|
||||||
<property name="text" translatable="yes">I would like to add you to my contact list.</property>
|
<property name="text" translatable="yes">I would like to add you to my contact list.</property>
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkListStore" id="liststore1">
|
<object class="GtkListStore" id="groups_liststore">
|
||||||
<columns>
|
<columns>
|
||||||
<!-- column-name item -->
|
<!-- column-name item -->
|
||||||
<column type="gchararray"/>
|
<column type="gchararray"/>
|
||||||
|
|
|
@ -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_]:
|
if not jid_ in self.agents[type_]:
|
||||||
self.agents[type_].append(jid_)
|
self.agents[type_].append(jid_)
|
||||||
self.available_types.append(type_)
|
self.available_types.append(type_)
|
||||||
liststore = gtk.ListStore(str)
|
|
||||||
self.group_comboboxentry.set_model(liststore)
|
|
||||||
# Combobox with transport/jabber icons
|
# Combobox with transport/jabber icons
|
||||||
liststore = gtk.ListStore(str, gtk.gdk.Pixbuf, str)
|
liststore = gtk.ListStore(str, gtk.gdk.Pixbuf, str)
|
||||||
cell = gtk.CellRendererPixbuf()
|
cell = gtk.CellRendererPixbuf()
|
||||||
|
|
Loading…
Reference in New Issue