diff options
author | Hans Petter Jansson <hpj@novell.com> | 2004-12-23 15:07:05 +0800 |
---|---|---|
committer | Hans Petter <hansp@src.gnome.org> | 2004-12-23 15:07:05 +0800 |
commit | 6248ae5265b066c363063ea788564165c5c79f30 (patch) | |
tree | 4b1954caa1195a3553a8226067ca12a61821de18 /addressbook/gui/component/select-names/e-select-names-config.c | |
parent | 6d9d18b7ad7e6bf4b4ea1d22f3933db43ad6aeb5 (diff) | |
download | gsoc2013-evolution-6248ae5265b066c363063ea788564165c5c79f30.tar gsoc2013-evolution-6248ae5265b066c363063ea788564165c5c79f30.tar.gz gsoc2013-evolution-6248ae5265b066c363063ea788564165c5c79f30.tar.bz2 gsoc2013-evolution-6248ae5265b066c363063ea788564165c5c79f30.tar.lz gsoc2013-evolution-6248ae5265b066c363063ea788564165c5c79f30.tar.xz gsoc2013-evolution-6248ae5265b066c363063ea788564165c5c79f30.tar.zst gsoc2013-evolution-6248ae5265b066c363063ea788564165c5c79f30.zip |
This is the last we see of ESelectNames.
2004-12-23 Hans Petter Jansson <hpj@novell.com>
This is the last we see of ESelectNames.
* gui/component/select-names/Evolution-Addressbook-SelectNames.idl
* gui/component/select-names/GNOME_Evolution_Addressbook_SelectNames.server.in.in
* gui/component/select-names/Makefile.am
* gui/component/select-names/e-select-names-bonobo.c
* gui/component/select-names/e-select-names-bonobo.h
* gui/component/select-names/e-select-names-completion.c
* gui/component/select-names/e-select-names-completion.h
* gui/component/select-names/e-select-names-config-keys.h
* gui/component/select-names/e-select-names-config.c
* gui/component/select-names/e-select-names-config.h
* gui/component/select-names/e-select-names-factory.c
* gui/component/select-names/e-select-names-factory.h
* gui/component/select-names/e-select-names-manager.c
* gui/component/select-names/e-select-names-manager.h
* gui/component/select-names/e-select-names-marshal.list
* gui/component/select-names/e-select-names-model.c
* gui/component/select-names/e-select-names-model.h
* gui/component/select-names/e-select-names-popup.c
* gui/component/select-names/e-select-names-popup.h
* gui/component/select-names/e-select-names-section.etspec
* gui/component/select-names/e-select-names-table-model.c
* gui/component/select-names/e-select-names-table-model.h
* gui/component/select-names/e-select-names-text-model.c
* gui/component/select-names/e-select-names-text-model.h
* gui/component/select-names/e-select-names.c
* gui/component/select-names/e-select-names.etspec
* gui/component/select-names/e-select-names.h
* gui/component/select-names/recipient.glade
* gui/component/select-names/select-names.glade: Begone.
svn path=/trunk/; revision=28191
Diffstat (limited to 'addressbook/gui/component/select-names/e-select-names-config.c')
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-config.c | 117 |
1 files changed, 0 insertions, 117 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names-config.c b/addressbook/gui/component/select-names/e-select-names-config.c deleted file mode 100644 index 8335ed7c3b..0000000000 --- a/addressbook/gui/component/select-names/e-select-names-config.c +++ /dev/null @@ -1,117 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ - -/* - * Authors : - * Damon Chaplin <damon@ximian.com> - * Rodrigo Moya <rodrigo@ximian.com> - * - * Copyright 2000, Ximian, Inc. - * Copyright 2000, Ximian, Inc. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2 of the GNU General Public - * License as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 - * USA - */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#include <string.h> - -#include "e-select-names-config-keys.h" -#include "e-select-names-config.h" - -static GConfClient *config = NULL; - -static void -do_cleanup (void) -{ - g_object_unref (config); - config = NULL; -} - -static void -e_select_names_config_init (void) -{ - if (config) - return; - - config = gconf_client_get_default (); - g_atexit ((GVoidFunc) do_cleanup); - - gconf_client_add_dir (config, SELECT_NAMES_CONFIG_PREFIX, GCONF_CLIENT_PRELOAD_RECURSIVE, NULL); -} - -void -e_select_names_config_remove_notification (guint id) -{ - gconf_client_notify_remove (config, id); -} - -char * -e_select_names_config_get_last_completion_book (void) -{ - e_select_names_config_init (); - - return gconf_client_get_string (config, SELECT_NAMES_CONFIG_LAST_COMPLETION_BOOK, NULL); -} - -void -e_select_names_config_set_last_completion_book (const char *last_completion_book) -{ - e_select_names_config_init (); - - gconf_client_set_string (config, SELECT_NAMES_CONFIG_LAST_COMPLETION_BOOK, last_completion_book, NULL); -} - -guint -e_select_names_config_add_notification_last_completion_book (GConfClientNotifyFunc func, gpointer data) -{ - guint id; - - e_select_names_config_init (); - - id = gconf_client_notify_add (config, SELECT_NAMES_CONFIG_LAST_COMPLETION_BOOK, func, data, NULL, NULL); - - return id; -} - -gint -e_select_names_config_get_min_query_length (void) -{ - e_select_names_config_init (); - - return gconf_client_get_int (config, SELECT_NAMES_CONFIG_MIN_QUERY_LENGTH, NULL); -} - - -void -e_select_names_config_set_min_query_length (gint day_end_hour) -{ - e_select_names_config_init (); - - gconf_client_set_int (config, SELECT_NAMES_CONFIG_MIN_QUERY_LENGTH, day_end_hour, NULL); -} - -guint -e_select_names_config_add_notification_min_query_length (GConfClientNotifyFunc func, gpointer data) -{ - guint id; - - e_select_names_config_init (); - - id = gconf_client_notify_add (config, SELECT_NAMES_CONFIG_MIN_QUERY_LENGTH, func, data, NULL, NULL); - - return id; -} |