From b642f0ee4f0db3b230b2a0412730b161a4c34329 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos <kourem@gmail.com> Date: Sat, 27 Aug 2005 00:23:44 +0000 Subject: [PATCH] =?UTF-8?q?[St=C3=A9phan=20K.]=20show=20protocol=20table?= =?UTF-8?q?=20row=20in=20add=20contact=20dlg=20only=20if=20we=20have=20tra?= =?UTF-8?q?nsports=20in=20that=20dialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dialogs.py | 8 ++++++++ src/gtkgui.glade | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/dialogs.py b/src/dialogs.py index 50946a4e53..1af9ab2311 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -319,6 +319,14 @@ def __init__(self, plugin, account, jid = None): 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() diff --git a/src/gtkgui.glade b/src/gtkgui.glade index d9d4936c9d..9d76fdc3e8 100644 --- a/src/gtkgui.glade +++ b/src/gtkgui.glade @@ -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> -- GitLab