[Stéphan K.] show protocol table row in add contact dlg only if we have transports in that dialog

This commit is contained in:
Nikos Kouremenos 2005-08-27 00:23:44 +00:00
parent 408aae5084
commit b642f0ee4f
2 changed files with 9 additions and 1 deletions

View File

@ -319,6 +319,14 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
if g != _('not in the roster') and g != _('Transports'):
self.group_comboboxentry.append_text(g)
if not jid_agents:
# There are no transports, just hide the protocol combobox
self.protocol_combobox.hide()
self.protocol_combobox.set_no_show_all(True)
protocol_label = self.xml.get_widget('protocol_label')
protocol_label.hide()
protocol_label.set_no_show_all(True)
self.xml.signal_autoconnect(self)
self.window.show_all()

View File

@ -1749,7 +1749,7 @@
</child>
<child>
<widget class="GtkLabel" id="label186">
<widget class="GtkLabel" id="protocol_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Protocol:</property>
<property name="use_underline">False</property>