aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSushma Rai <rsushma@src.gnome.org>2005-09-28 16:38:58 +0800
committerSushma Rai <rsushma@src.gnome.org>2005-09-28 16:38:58 +0800
commita19d9df3e60438d5751e02f8c7aa54c5fe1a64c5 (patch)
treecfe0643dfaaf98c70776e7897726e6bf77e950ce /plugins
parent7b3f66098f65545d80276b7b98dd25856fa362fe (diff)
downloadgsoc2013-evolution-a19d9df3e60438d5751e02f8c7aa54c5fe1a64c5.tar
gsoc2013-evolution-a19d9df3e60438d5751e02f8c7aa54c5fe1a64c5.tar.gz
gsoc2013-evolution-a19d9df3e60438d5751e02f8c7aa54c5fe1a64c5.tar.bz2
gsoc2013-evolution-a19d9df3e60438d5751e02f8c7aa54c5fe1a64c5.tar.lz
gsoc2013-evolution-a19d9df3e60438d5751e02f8c7aa54c5fe1a64c5.tar.xz
gsoc2013-evolution-a19d9df3e60438d5751e02f8c7aa54c5fe1a64c5.tar.zst
gsoc2013-evolution-a19d9df3e60438d5751e02f8c7aa54c5fe1a64c5.zip
Using writable property to find the GroupWise system address book, while
marking it for offline usage, instead of it's name. svn path=/trunk/; revision=30385
Diffstat (limited to 'plugins')
-rw-r--r--plugins/groupwise-account-setup/ChangeLog6
-rw-r--r--plugins/groupwise-account-setup/camel-gw-listener.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/plugins/groupwise-account-setup/ChangeLog b/plugins/groupwise-account-setup/ChangeLog
index 13935b83f2..db7c8029a3 100644
--- a/plugins/groupwise-account-setup/ChangeLog
+++ b/plugins/groupwise-account-setup/ChangeLog
@@ -1,3 +1,9 @@
+2005-09-28 Sushma Rai <rsushma@novell.com>
+
+ * camel-gw-listener.c (add_addressbook_sources): Removed name
+ comparison and using writable property, to find the system
+ address book, while marking for offline usage.
+
2005-09-16 Vivek Jain <jvivek@novell.com>
* camel-gw-listener.c:(get_addressbook_names_from_server)
diff --git a/plugins/groupwise-account-setup/camel-gw-listener.c b/plugins/groupwise-account-setup/camel-gw-listener.c
index 8aa5daf1e4..58122ff7b4 100644
--- a/plugins/groupwise-account-setup/camel-gw-listener.c
+++ b/plugins/groupwise-account-setup/camel-gw-listener.c
@@ -633,7 +633,12 @@ add_addressbook_sources (EAccount *account)
e_source_set_property (source, "auth-domain", "Groupwise");
e_source_set_property (source, "port", soap_port);
e_source_set_property(source, "user", url->user);
- if (!strcmp (book_name, "Novell GroupWise Address Book"))
+ /* mark system address book for offline usage */
+ /* FIXME: add isPersonal flag to container and use that isFrequentContact
+ * properties, instead of using writable to distinguish between the
+ * system address book and other address books.
+ */
+ if (!e_gw_container_get_is_writable (E_GW_CONTAINER(temp_list->data)))
e_source_set_property (source, "offline_sync", "1");
else
e_source_set_property (source, "offline_sync",