| 712 update_editable(GaimConnection *gc, AccountPrefsDialog *dialog) |
712 update_editable(GaimConnection *gc, AccountPrefsDialog *dialog) |
| 713 { |
713 { |
| 714 gboolean set; |
714 gboolean set; |
| 715 GList *l; |
715 GList *l; |
| 716 |
716 |
| |
717 if (dialog->account == NULL) |
| |
718 return; |
| |
719 |
| 717 if (gc != NULL && dialog->account != gaim_connection_get_account(gc)) |
720 if (gc != NULL && dialog->account != gaim_connection_get_account(gc)) |
| 718 return; |
721 return; |
| 719 |
722 |
| 720 set = !(gaim_account_is_connected(dialog->account) || gaim_account_is_connecting(dialog->account)); |
723 set = !(gaim_account_is_connected(dialog->account) || gaim_account_is_connecting(dialog->account)); |
| 721 gtk_widget_set_sensitive(dialog->protocol_menu, set); |
724 gtk_widget_set_sensitive(dialog->protocol_menu, set); |