diff options
author | Dan Winship <danw@src.gnome.org> | 2004-06-11 00:30:15 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2004-06-11 00:30:15 +0800 |
commit | 4ba6a25075f9cee4d9aafefe1d77a14e2734300d (patch) | |
tree | 1d0e071b5f3fafce7988c2dc54273a685f0279d9 /shell/e-shell-config-autocompletion.c | |
parent | f07379abc5bfc6b9d0b46b6789675447faff4503 (diff) | |
download | gsoc2013-evolution-4ba6a25075f9cee4d9aafefe1d77a14e2734300d.tar.gz gsoc2013-evolution-4ba6a25075f9cee4d9aafefe1d77a14e2734300d.tar.zst gsoc2013-evolution-4ba6a25075f9cee4d9aafefe1d77a14e2734300d.zip |
Remove no-longer-used stuff
* check-empty.xpm, check-filled.xpm, check-missing.xpm:
* e-shell-config-autocompletion.[ch]:
* e-shell-config-default-folders.[ch]:
* e-shell-config-folder-settings.[ch]:
* e-shell-config-offline.[ch]:
* e-shell-config.[ch]:
* e-shell-folder-creation-dialog.[ch]:
* e-shell-shared-folder-picker-dialog.[ch]:
* e-storage-set-store.[ch]:
* e-storage-set-view-checkboxes.etstate:
* e-storage-set-view-no-checkboxes.etstate:
* e-storage-set-view.etspec:
* e-uri-schema-registry.[ch]:
* evolution-activity-client.c:
* evolution-storage-set-view-factory.[ch]:
* evolution-storage-set-view.[ch]:
* glade/e-folder-list.glade:
* glade/e-shell-config-default-folders.glade:
* glade/e-shell-folder-creation-dialog.glade:
* glade/e-shell-shared-folder-picker-dialog.glade: Remove
no-longer-used stuff
* README: Remove this, since it's more confusing than true now.
* Evolution-Offline.idl, Evolution-common.idl: Remove
GNOME_Evolution_Folder, and references to it.
* e-active-connection-dialog.glade:
* evolution-startup-wizard.glade: Move the last two remaining
files from ./glade/ up to here.
* glade/*: Gone.
* Makefile.am, .cvsignore: update for the above
svn path=/trunk/; revision=26286
Diffstat (limited to 'shell/e-shell-config-autocompletion.c')
-rw-r--r-- | shell/e-shell-config-autocompletion.c | 129 |
1 files changed, 0 insertions, 129 deletions
diff --git a/shell/e-shell-config-autocompletion.c b/shell/e-shell-config-autocompletion.c deleted file mode 100644 index df232e8067..0000000000 --- a/shell/e-shell-config-autocompletion.c +++ /dev/null @@ -1,129 +0,0 @@ -/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ -/* e-shell-config-autocompletion.c - Configuration page for addressbook autocompletion. - * - * Copyright (C) 2002 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. - * - * Authors: Chris Lahey <clahey@ximian.com> - * Chris Toshok <toshok@ximian.com> - */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - - -#include "e-shell-config-autocompletion.h" - -#include "e-folder-list.h" - -#include "Evolution.h" - -#include <bonobo/bonobo-exception.h> - -#include <libgnome/gnome-i18n.h> -#include <gtk/gtkwidget.h> -#include <gtk/gtksignal.h> - -#include <gconf/gconf-client.h> - - -typedef struct { - EvolutionConfigControl *config_control; - - GtkWidget *control_widget; - - EvolutionShellClient *shell_client; -} EvolutionAutocompletionConfig; - -static void -folder_list_changed_callback (EFolderList *efl, - EvolutionAutocompletionConfig *ac) -{ - evolution_config_control_changed (ac->config_control); -} - -static void -config_control_destroy_notify (void *data, - GObject *where_the_config_control_was) -{ - EvolutionAutocompletionConfig *ac = (EvolutionAutocompletionConfig *) data; - - g_object_unref (ac->shell_client); - - g_free (ac); -} - - -static void -config_control_apply_callback (EvolutionConfigControl *config_control, - EvolutionAutocompletionConfig *ac) -{ - GConfClient *client; - char *xml; - - client = gconf_client_get_default (); - - xml = e_folder_list_get_xml (E_FOLDER_LIST (ac->control_widget)); - gconf_client_set_string (client, "/apps/evolution/addressbook/completion/uris", xml, NULL); - g_free (xml); - - g_object_unref (client); -} - -GtkWidget * -e_shell_config_autocompletion_create_widget (EShell *shell, EvolutionConfigControl *config_control) -{ - EvolutionAutocompletionConfig *ac; - CORBA_Environment ev; - GConfClient *client; - static const char *possible_types[] = { "contacts/*", NULL }; - char *xml; - - ac = g_new0 (EvolutionAutocompletionConfig, 1); - - CORBA_exception_init (&ev); - - ac->shell_client = evolution_shell_client_new (BONOBO_OBJREF (shell)); - - client = gconf_client_get_default (); - xml = gconf_client_get_string (client, "/apps/evolution/addressbook/completion/uris", NULL); - g_object_unref (client); - - ac->control_widget = e_folder_list_new (ac->shell_client, xml); - g_free (xml); - - g_object_set((ac->control_widget), - "title", _("Extra Completion folders"), - "possible_types", possible_types, - NULL); - - gtk_widget_show (ac->control_widget); - - ac->config_control = config_control; - - g_signal_connect (ac->control_widget, "changed", - G_CALLBACK (folder_list_changed_callback), ac); - g_signal_connect (ac->config_control, "apply", - G_CALLBACK (config_control_apply_callback), ac); - - g_object_weak_ref (G_OBJECT (ac->config_control), config_control_destroy_notify, ac); - - CORBA_exception_free (&ev); - - return ac->control_widget; -} - |