From 91b4cbdd16fc5c0e65caccb855263b0371fcacbf Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Mon, 3 May 2004 23:17:00 +0000 Subject: set the email entry sesitive only when anonymous isn't selected. Make the 2004-05-03 Larry Ewing * 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 --- addressbook/ChangeLog | 4 ++++ addressbook/gui/component/addressbook-config.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index ed73eaedb8..33904d3573 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,9 @@ 2004-05-03 Larry Ewing + * 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. + * gui/component/ldap-config.glade: remove unused colorpicker. 2004-05-03 JP Rosevear 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"); -- cgit