diff options
author | Sivaiah Nallagatla <snallagatla@novell.com> | 2004-08-26 00:26:15 +0800 |
---|---|---|
committer | Sivaiah Nallagatla <siva@src.gnome.org> | 2004-08-26 00:26:15 +0800 |
commit | 727b1f572427394df2e57e96e8a6b28db06c1f59 (patch) | |
tree | 80a2113da2a29f363893866deb8cbd4e5b127239 /addressbook | |
parent | 1f5dacf042e1c3af1235de48e060faf61993bda8 (diff) | |
download | gsoc2013-evolution-727b1f572427394df2e57e96e8a6b28db06c1f59.tar.gz gsoc2013-evolution-727b1f572427394df2e57e96e8a6b28db06c1f59.tar.zst gsoc2013-evolution-727b1f572427394df2e57e96e8a6b28db06c1f59.zip |
disbale the display name widget in case of groupwise as we can not handle
2004-08-25 Sivaiah Nallagatla <snallagatla@novell.com>
* gui/component/addressbook-config.c (source_to_dialog) :
disbale the display name widget in case of groupwise as we can not handle renames as
of now
(dialog_to_source) also copy "use_ssl" property to new source so that
new books also use ssl
svn path=/trunk/; revision=27023
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 8 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook-config.c | 10 |
2 files changed, 16 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index ca2a3f27e5..ab65c2f5f7 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,11 @@ +2004-08-25 Sivaiah Nallagatla <snallagatla@novell.com> + + * gui/component/addressbook-config.c (source_to_dialog) : + disbale the display name widget in case of groupwise as we can not handle renames as + of now + (dialog_to_source) also copy "use_ssl" property to new source so that + new books also use ssl + 2004-08-25 Hans Petter Jansson <hpj@ximian.com> May fix #61833. diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c index 6c1d1fc9cc..43f69dfbf2 100644 --- a/addressbook/gui/component/addressbook-config.c +++ b/addressbook/gui/component/addressbook-config.c @@ -258,6 +258,8 @@ dialog_to_source (AddressbookSourceDialog *dialog, ESource *source, gboolean tem e_source_set_property (source, "auth", property_value); property_value = e_source_get_property (existing_source, "user"); e_source_set_property (source, "user", property_value); + property_value = e_source_get_property (existing_source, "use_ssl"); + e_source_set_property (source, "use_ssl", property_value); } e_source_set_property (source, "auth-domain", "Groupwise"); str = g_strconcat (";", gtk_entry_get_text (GTK_ENTRY (dialog->display_name)), NULL); @@ -334,9 +336,13 @@ static void source_to_dialog (AddressbookSourceDialog *dialog) { ESource *source = dialog->source; - + const char *base_uri; + gtk_entry_set_text (GTK_ENTRY (dialog->display_name), source ? e_source_peek_name (source) : ""); - + base_uri = e_source_group_peek_base_uri (dialog->source_group); + if (source && base_uri && g_str_has_prefix (base_uri, "groupwise://")) + gtk_widget_set_sensitive (GTK_WIDGET(dialog->display_name), FALSE); + #ifdef HAVE_LDAP gtk_spin_button_set_value ( GTK_SPIN_BUTTON (dialog->limit_spinbutton), g_strtod ( source && e_source_get_property (source, "limit") ? |