From 521b129893815d023cef2828c5a44dad6a75b731 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 25 Sep 2002 21:40:49 +0000 Subject: Rename "ldap-contacts" to "contacts/ldap" and add "contacts/public". * gui/component/addressbook-component.c (folder_types): Rename "ldap-contacts" to "contacts/ldap" and add "contacts/public". (IS_CONTACT_TYPE): update for new types. * gui/component/select-names/e-select-names.c (e_select_names_init): Use "contacts/*" for selector_types. * gui/widgets/e-addressbook-util.c (e_addressbook_transfer_cards): Likewise. * gui/component/GNOME_Evolution_Addressbook.oaf.in: add "evolution:config_item:type" = "contacts/ldap" to the LDAP sources control so it comes up by default when you open Preferences in an LDAP folder. svn path=/trunk/; revision=18221 --- addressbook/gui/component/addressbook-component.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'addressbook/gui/component/addressbook-component.c') diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c index 7438576931..791e49ac48 100644 --- a/addressbook/gui/component/addressbook-component.c +++ b/addressbook/gui/component/addressbook-component.c @@ -72,12 +72,14 @@ static char *accepted_dnd_types[] = { static const EvolutionShellComponentFolderType folder_types[] = { { "contacts", "evolution-contacts.png", N_("Contacts"), N_("Folder containing contact information"), TRUE, accepted_dnd_types, NULL }, - { "ldap-contacts", "ldap.png", N_("LDAP Server"), N_("LDAP server containing contact information"), + { "contacts/ldap", "ldap.png", N_("LDAP Server"), N_("LDAP server containing contact information"), + FALSE, accepted_dnd_types, NULL }, + { "contacts/public", "evolution-contacts.png", N_("Public Contacts"), N_("Public folder containing contact information"), FALSE, accepted_dnd_types, NULL }, { NULL } }; -#define IS_CONTACT_TYPE(x) (g_strcasecmp((x), "contacts") == 0 || g_strcasecmp ((x), "ldap-contacts") == 0) +#define IS_CONTACT_TYPE(x) (g_strcasecmp((x), "contacts") == 0 || g_strcasecmp ((x), "contacts/ldap") == 0 || g_strcasecmp((x), "contacts/public")) /* EvolutionShellComponent methods and signals. */ -- cgit v1.2.3