Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2007-08-25 02:22:01 +0400
committerYann Leboulanger <asterix@lagaule.org>2007-08-25 02:22:01 +0400
commite70ccf92189a9a51e6f321a38540dae6c5c47817 (patch)
treee59cb26fcc66311485c13a21e850d2992399fe53
parent6309d6a02ac89897d0d49a321cf6835236317a5a (diff)
fix add new contact dialog widget's visibility
-rw-r--r--data/glade/add_new_contact_window.glade1
-rw-r--r--src/dialogs.py24
2 files changed, 9 insertions, 16 deletions
diff --git a/data/glade/add_new_contact_window.glade b/data/glade/add_new_contact_window.glade
index cd10d283e..004d86963 100644
--- a/data/glade/add_new_contact_window.glade
+++ b/data/glade/add_new_contact_window.glade
@@ -206,6 +206,7 @@
<widget class="GtkCheckButton" id="auto_authorize_checkbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="no_show_all">True</property>
<property name="label" translatable="yes">A_llow this contact to view my status</property>
<property name="use_underline">True</property>
<property name="response_id">0</property>
diff --git a/src/dialogs.py b/src/dialogs.py
index e13f3f7a1..bc6202849 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -601,23 +601,17 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
self.group_comboboxentry.set_active(i)
i += 1
+ self.window.show_all()
+
if self.account:
self.account_label.hide()
self.account_hbox.hide()
- self.account_label.set_no_show_all(True)
- self.account_hbox.set_no_show_all(True)
else:
liststore = gtk.ListStore(str, str)
for acct in accounts:
liststore.append([acct, acct])
self.account_combobox.set_model(liststore)
self.account_combobox.set_active(0)
- # FIXME: Hide stuff. Is there a way to do this in glade?
- self.protocol_jid_combobox.hide()
- self.register_hbox.hide()
- self.connected_label.hide()
-
- self.window.show_all()
def on_add_new_contact_window_destroy(self, widget):
if self.account:
@@ -708,8 +702,7 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
model.append([jid_])
self.protocol_jid_combobox.set_active(0)
if len(self.agents[type_]) > 1:
- self.protocol_jid_combobox.set_no_show_all(False)
- self.protocol_jid_combobox.show_all()
+ self.protocol_jid_combobox.show()
else:
self.protocol_jid_combobox.hide()
if type_ in self.uid_labels:
@@ -721,8 +714,7 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
else:
self.message_scrolledwindow.hide()
if type_ in self.available_types:
- self.register_hbox.set_no_show_all(False)
- self.register_hbox.show_all()
+ self.register_hbox.show()
self.auto_authorize_checkbutton.hide()
self.connected_label.hide()
self.subscription_table.hide()
@@ -739,8 +731,7 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
self.add_button.set_sensitive(False)
self.auto_authorize_checkbutton.hide()
return
- self.subscription_table.set_no_show_all(False)
- self.subscription_table.show_all()
+ self.subscription_table.show()
self.auto_authorize_checkbutton.show()
self.connected_label.hide()
self.add_button.set_sensitive(True)
@@ -749,13 +740,14 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
if self.protocol_jid_combobox.get_active_text() == jid:
self.register_hbox.hide()
self.connected_label.hide()
- self.subscription_table.set_no_show_all(False)
- self.subscription_table.show_all()
+ self.subscription_table.show()
+ self.auto_authorize_checkbutton.show()
self.add_button.set_sensitive(True)
def transport_signed_out(self, jid):
if self.protocol_jid_combobox.get_active_text() == jid:
self.subscription_table.hide()
+ self.auto_authorize_checkbutton.hide()
self.connected_label.show()
self.add_button.set_sensitive(False)