diff options
author | Larry Ewing <lewing@ximian.com> | 2004-05-04 07:17:00 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2004-05-04 07:17:00 +0800 |
commit | 91b4cbdd16fc5c0e65caccb855263b0371fcacbf (patch) | |
tree | d1347d885b98b84514a0d89eae7c7a871d854dda /addressbook/gui | |
parent | 32aa719cf12a6303ba743d4630c2537bd40b3e84 (diff) | |
download | gsoc2013-evolution-91b4cbdd16fc5c0e65caccb855263b0371fcacbf.tar.gz gsoc2013-evolution-91b4cbdd16fc5c0e65caccb855263b0371fcacbf.tar.zst gsoc2013-evolution-91b4cbdd16fc5c0e65caccb855263b0371fcacbf.zip |
set the email entry sesitive only when anonymous isn't selected. Make the
2004-05-03 Larry Ewing <lewing@ximian.com>
* gui/component/addressbook-config.c (add_folder_modify): set the
email entry sesitive only when anonymous isn't selected. Make the
details tab insensitive if the method is local.
svn path=/trunk/; revision=25770
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/component/addressbook-config.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c index 963e62c405..8dfdb473b8 100644 --- a/addressbook/gui/component/addressbook-config.c +++ b/addressbook/gui/component/addressbook-config.c @@ -1016,18 +1016,19 @@ add_folder_modify (GtkWidget *widget, AddressbookSourceDialog *sdialog) gtk_widget_set_sensitive (sdialog->auth_frame, remote); #ifdef HAVE_LDAP + gtk_widget_set_sensitive (sdialog->email, sdialog->auth != ADDRESSBOOK_LDAP_AUTH_NONE); + if (valid) valid = general_tab_check (sdialog); if (valid) valid = connecting_tab_check (sdialog); - gtk_widget_set_sensitive (glade_xml_get_widget (sdialog->gui, "details-label"), valid); + gtk_widget_set_sensitive (glade_xml_get_widget (sdialog->gui, "details-label"), valid && remote); - gtk_widget_set_sensitive (glade_xml_get_widget (sdialog->gui, "details-vbox"), valid); + gtk_widget_set_sensitive (glade_xml_get_widget (sdialog->gui, "details-vbox"), valid && remote); if (valid) valid = searching_tab_check (sdialog); - else #endif gtk_widget_set_sensitive (sdialog->ok_button, valid); @@ -1109,7 +1110,6 @@ addressbook_add_server_dialog (void) setup_searching_tab (sdialog, add_folder_modify); setup_connecting_tab (sdialog, add_folder_modify); - sdialog->auth_frame = glade_xml_get_widget (sdialog->gui, "authentication-frame"); sdialog->server_frame = glade_xml_get_widget (sdialog->gui, "server-frame"); |