From 268185761bcdee059f5d3b52937ee3c5667b79e5 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Sat, 6 Dec 2003 23:19:01 +0000 Subject: change prototype to fix warning, and change the comment to read 2003-12-06 Chris Toshok * gui/component/select-names/e-select-names-manager.c (open_book_cb): change prototype to fix warning, and change the comment to read load_source instead of load_uri (which isn't what we use anymore.) (update_completion_books): just use our source list for this. check the "completion" source property. (source_list_changed): recreate the completion books. (e_select_names_manager_init): connect to the source_list's changed signal. (e_select_names_manager_dispose): don't need to free the completion_uids list anymore. * gui/component/select-names/e-select-names-config.c (e_select_names_config_get_completion_books, e_select_names_config_set_completion_books, e_select_names_config_add_notification_completion_books): remove. * gui/component/select-names/e-select-names-config.h: remove the completion books calls, since we can just use the source list. * gui/component/component-factory.c (factory): create the autocompletion control. * gui/component/autocompletion-config.[ch]: new config control for selecting completion folders. Uses e-source-selector. Could probably be beautified a bit. * gui/component/Makefile.am (libevolution_addressbook_la_SOURCES): add autocompletion-config.[ch] * gui/component/GNOME_Evolution_Addressbook.server.in.in: remove the ldap config control server, and add the autocompletion one. svn path=/trunk/; revision=23663 --- addressbook/gui/component/component-factory.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'addressbook/gui/component/component-factory.c') diff --git a/addressbook/gui/component/component-factory.c b/addressbook/gui/component/component-factory.c index 82a766d070..08bf146691 100644 --- a/addressbook/gui/component/component-factory.c +++ b/addressbook/gui/component/component-factory.c @@ -26,6 +26,7 @@ #include "addressbook.h" #include "addressbook-component.h" #include "addressbook-config.h" +#include "autocompletion-config.h" #include "eab-popup-control.h" #include "eab-vcard-control.h" #include "select-names/e-select-names-bonobo.h" @@ -43,6 +44,7 @@ #define ADDRESS_POPUP_ID "OAFIID:GNOME_Evolution_Addressbook_AddressPopup:" BASE_VERSION #define SELECT_NAMES_ID "OAFIID:GNOME_Evolution_Addressbook_SelectNames:" BASE_VERSION #define LDAP_STORAGE_CONFIG_CONTROL_ID "OAFIID:GNOME_Evolution_LDAPStorage_ConfigControl:" BASE_VERSION +#define COMPLETION_CONFIG_CONTROL_ID "OAFIID:GNOME_Evolution_Addressbook_Autocompletion_ConfigControl:" BASE_VERSION #define CERTIFICATE_MANAGER_CONFIG_CONTROL_ID "OAFIID:GNOME_Evolution_SMime_CertificateManager_ConfigControl:" BASE_VERSION @@ -64,6 +66,8 @@ factory (BonoboGenericFactory *factory, } if (strcmp (component_id, ADDRESS_POPUP_ID) == 0) return BONOBO_OBJECT (eab_popup_control_new ()); + if (strcmp (component_id, COMPLETION_CONFIG_CONTROL_ID) == 0) + return BONOBO_OBJECT (autocompletion_config_control_new ()); #if 0 /* Config control is dead */ if (strcmp (component_id, LDAP_STORAGE_CONFIG_CONTROL_ID) == 0) -- cgit v1.2.3