diff options
author | Dan Winship <danw@src.gnome.org> | 2002-09-27 04:43:40 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2002-09-27 04:43:40 +0800 |
commit | 1dcca79ec4ade696bb31dd9d3914a92ab3fd0cef (patch) | |
tree | dc008aa4f6596ca5d322e4ec57aa82914151ffbd | |
parent | 15a08c668a6f86df06721a71455837891496bad2 (diff) | |
download | gsoc2013-evolution-1dcca79ec4ade696bb31dd9d3914a92ab3fd0cef.tar gsoc2013-evolution-1dcca79ec4ade696bb31dd9d3914a92ab3fd0cef.tar.gz gsoc2013-evolution-1dcca79ec4ade696bb31dd9d3914a92ab3fd0cef.tar.bz2 gsoc2013-evolution-1dcca79ec4ade696bb31dd9d3914a92ab3fd0cef.tar.lz gsoc2013-evolution-1dcca79ec4ade696bb31dd9d3914a92ab3fd0cef.tar.xz gsoc2013-evolution-1dcca79ec4ade696bb31dd9d3914a92ab3fd0cef.tar.zst gsoc2013-evolution-1dcca79ec4ade696bb31dd9d3914a92ab3fd0cef.zip |
Change folder type to "contacts/ldap". (addressbook_storage_add_source):
* gui/component/addressbook-storage.c (load_source_data): Change
folder type to "contacts/ldap".
(addressbook_storage_add_source): Likewise.
(create_ldap_folder): Check for type being "contacts" not
ldap contacts, since the ldap-specific type doesn't appear in the
menu.
svn path=/trunk/; revision=18241
-rw-r--r-- | addressbook/ChangeLog | 9 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook-storage.c | 6 |
2 files changed, 12 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 25c93710d9..f3f7b1be63 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,12 @@ +2002-09-26 Dan Winship <danw@ximian.com> + + * gui/component/addressbook-storage.c (load_source_data): Change + folder type to "contacts/ldap". + (addressbook_storage_add_source): Likewise. + (create_ldap_folder): Check for type being "contacts" not + ldap contacts, since the ldap-specific type doesn't appear in the + menu. + 2002-09-25 Dan Winship <danw@ximian.com> * gui/component/addressbook-component.c (folder_types): Rename diff --git a/addressbook/gui/component/addressbook-storage.c b/addressbook/gui/component/addressbook-storage.c index 95c132cbcf..dcff420a63 100644 --- a/addressbook/gui/component/addressbook-storage.c +++ b/addressbook/gui/component/addressbook-storage.c @@ -142,7 +142,7 @@ create_ldap_folder (EvolutionStorage *storage, const Bonobo_Listener listener, const CORBA_char *description, const CORBA_char *parent_physical_uri, gpointer data) { - if (strcmp (type, "ldap-contacts")) { + if (strcmp (type, "contacts")) { notify_listener (listener, GNOME_Evolution_Storage_UNSUPPORTED_TYPE); return; } @@ -459,7 +459,7 @@ load_source_data (const char *file_path) path = g_strdup_printf ("/%s", source->name); evolution_storage_new_folder (storage, path, source->name, - "ldap-contacts", source->uri, + "contacts/ldap", source->uri, source->description, NULL, 0, FALSE, 0); sources = g_list_append (sources, source); @@ -578,7 +578,7 @@ addressbook_storage_add_source (AddressbookSource *source) /* And then to the ui */ addressbook_get_other_contact_storage(); path = g_strdup_printf ("/%s", source->name); - evolution_storage_new_folder (storage, path, source->name, "ldap-contacts", + evolution_storage_new_folder (storage, path, source->name, "contacts/ldap", source->uri, source->description, NULL, 0, FALSE, 0); g_free (path); |