Mercurial > pidgin.yaz
comparison src/gtkaccount.c @ 12555:8427ef2b4138
[gaim-migrate @ 14874]
Fix a crash reported in bug #1384554. Fix another bug in the accounts window username greying-out code that I introduced when I changed Sadrul's patch to use the signing-on signal instead of the signed-on signal.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 19 Dec 2005 08:29:34 +0000 |
parents | e9c143acd765 |
children | e856f985a0b9 |
comparison
equal
deleted
inserted
replaced
12554:9d9030dfd689 | 12555:8427ef2b4138 |
---|---|
715 GList *l; | 715 GList *l; |
716 | 716 |
717 if (gc != NULL && dialog->account != gaim_connection_get_account(gc)) | 717 if (gc != NULL && dialog->account != gaim_connection_get_account(gc)) |
718 return; | 718 return; |
719 | 719 |
720 set = !gaim_account_is_connected(dialog->account); | 720 set = !(gaim_account_is_connected(dialog->account) || gaim_account_is_connecting(dialog->account)); |
721 gtk_widget_set_sensitive(dialog->protocol_menu, set); | 721 gtk_widget_set_sensitive(dialog->protocol_menu, set); |
722 gtk_widget_set_sensitive(dialog->screenname_entry, set); | 722 gtk_widget_set_sensitive(dialog->screenname_entry, set); |
723 | 723 |
724 for (l = dialog->user_split_entries ; l != NULL ; l = l->next) | 724 for (l = dialog->user_split_entries ; l != NULL ; l = l->next) |
725 gtk_widget_set_sensitive((GtkWidget *)l->data, set); | 725 gtk_widget_set_sensitive((GtkWidget *)l->data, set); |
763 | 763 |
764 add_pref_box(dialog, vbox, _("Screen name:"), dialog->screenname_entry); | 764 add_pref_box(dialog, vbox, _("Screen name:"), dialog->screenname_entry); |
765 | 765 |
766 g_signal_connect(G_OBJECT(dialog->screenname_entry), "changed", | 766 g_signal_connect(G_OBJECT(dialog->screenname_entry), "changed", |
767 G_CALLBACK(screenname_changed_cb), dialog); | 767 G_CALLBACK(screenname_changed_cb), dialog); |
768 | |
769 /* Do not let the user change the protocol/screenname while connected. */ | |
770 update_editable(NULL, dialog); | |
771 | 768 |
772 /* Do the user split thang */ | 769 /* Do the user split thang */ |
773 if (dialog->plugin == NULL) /* Yeah right. */ | 770 if (dialog->plugin == NULL) /* Yeah right. */ |
774 user_splits = NULL; | 771 user_splits = NULL; |
775 else | 772 else |
874 | 871 |
875 gtk_widget_hide(dialog->password_box); | 872 gtk_widget_hide(dialog->password_box); |
876 gtk_widget_hide(dialog->remember_pass_check); | 873 gtk_widget_hide(dialog->remember_pass_check); |
877 } | 874 } |
878 | 875 |
876 /* Do not let the user change the protocol/screenname while connected. */ | |
877 update_editable(NULL, dialog); | |
879 gaim_signal_connect(gaim_connections_get_handle(), "signing-on", dialog, | 878 gaim_signal_connect(gaim_connections_get_handle(), "signing-on", dialog, |
880 G_CALLBACK(update_editable), dialog); | 879 G_CALLBACK(update_editable), dialog); |
881 gaim_signal_connect(gaim_connections_get_handle(), "signed-off", dialog, | 880 gaim_signal_connect(gaim_connections_get_handle(), "signed-off", dialog, |
882 G_CALLBACK(update_editable), dialog); | 881 G_CALLBACK(update_editable), dialog); |
883 } | 882 } |