aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/component-factory.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-12-07 07:19:01 +0800
committerChris Toshok <toshok@src.gnome.org>2003-12-07 07:19:01 +0800
commit268185761bcdee059f5d3b52937ee3c5667b79e5 (patch)
tree216d48a6a918be7189be161451f52ba4e5205f59 /addressbook/gui/component/component-factory.c
parent7c13868fae6c2ddc4aa3ab951929ec410e73f284 (diff)
downloadgsoc2013-evolution-268185761bcdee059f5d3b52937ee3c5667b79e5.tar
gsoc2013-evolution-268185761bcdee059f5d3b52937ee3c5667b79e5.tar.gz
gsoc2013-evolution-268185761bcdee059f5d3b52937ee3c5667b79e5.tar.bz2
gsoc2013-evolution-268185761bcdee059f5d3b52937ee3c5667b79e5.tar.lz
gsoc2013-evolution-268185761bcdee059f5d3b52937ee3c5667b79e5.tar.xz
gsoc2013-evolution-268185761bcdee059f5d3b52937ee3c5667b79e5.tar.zst
gsoc2013-evolution-268185761bcdee059f5d3b52937ee3c5667b79e5.zip
change prototype to fix warning, and change the comment to read
2003-12-06 Chris Toshok <toshok@ximian.com> * 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
Diffstat (limited to 'addressbook/gui/component/component-factory.c')
-rw-r--r--addressbook/gui/component/component-factory.c4
1 files changed, 4 insertions, 0 deletions
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)