diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2007-11-03 20:06:34 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2007-11-03 20:06:34 +0800 |
commit | 8228c1b611c46ccc6b8069b1e9a9f442f468e342 (patch) | |
tree | cfd51f80c77766f7567e36c5d82f7c96e013f862 /addressbook/tools/evolution-addressbook-import.c | |
parent | ebf5dd871742c383a01331c4fdb64a1b5d51d33c (diff) | |
download | gsoc2013-evolution-8228c1b611c46ccc6b8069b1e9a9f442f468e342.tar gsoc2013-evolution-8228c1b611c46ccc6b8069b1e9a9f442f468e342.tar.gz gsoc2013-evolution-8228c1b611c46ccc6b8069b1e9a9f442f468e342.tar.bz2 gsoc2013-evolution-8228c1b611c46ccc6b8069b1e9a9f442f468e342.tar.lz gsoc2013-evolution-8228c1b611c46ccc6b8069b1e9a9f442f468e342.tar.xz gsoc2013-evolution-8228c1b611c46ccc6b8069b1e9a9f442f468e342.tar.zst gsoc2013-evolution-8228c1b611c46ccc6b8069b1e9a9f442f468e342.zip |
** Remove dead files from source control. The dates below indicate when
2007-11-03 Matthew Barnes <mbarnes@redhat.com>
** Remove dead files from source control. The dates below
indicate when the file was removed from Makefile.am.
Fixes part of bug #478704.
* addressbook/printing/e-contact-print-envelope.c (Apr 2007)
* addressbook/printing/e-contact-print-envelope.h (Apr 2007)
* addressbook/tools/evolution-addressbook-abuse.c (May 2004)
* addressbook/tools/evolution-addressbook-import.c (no history)
* calendar/gui/dialogs/calendar-setup.glade (Nov 2004)
* calendar/gui/dialogs/meeting-page.etspec (Sep 2003)
* calendar/gui/dialogs/new-calendar.glade (Jan 2003)
* calendar/gui/dialogs/new-task-list.glade (Jan 2004)
* calendar/gui/dialogs/url-editor-dialog.c (Dec 2005)
* calendar/gui/dialogs/url-editor-dialog.glade (Dec 2005)
* calendar/gui/dialogs/url-editor-dialog.h (Dec 2005)
* calendar/gui/e-pub-utils.c (Dec 2005)
* calendar/gui/e-pub-utils.h (Dec 2005)
* calendar/gui/gnome-calendar-conduit.png (May 2000)
* e-util/e-categories-master-list-wombat.c (Jun 2005)
* e-util/e-categories-master-list-wombat.h (Jun 2005)
* tools/evolution-launch-composer.c (Jun 2003)
* configure.in:
Remove plugins/mail-remote/Makefile from AC_OUTPUT.
Fixes a distcheck error.
* po/POTFILES.in: Remove files for mail-remote plugin.
svn path=/trunk/; revision=34487
Diffstat (limited to 'addressbook/tools/evolution-addressbook-import.c')
-rw-r--r-- | addressbook/tools/evolution-addressbook-import.c | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/addressbook/tools/evolution-addressbook-import.c b/addressbook/tools/evolution-addressbook-import.c deleted file mode 100644 index 28871efd96..0000000000 --- a/addressbook/tools/evolution-addressbook-import.c +++ /dev/null @@ -1,90 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ - -#include <config.h> - -#include <bonobo-activation/bonobo-activation.h> -#include <bonobo/bonobo-main.h> -#include <backend/ebook/e-book-async.h> -#include <gnome.h> - -static int exec_ref_count = 0; - -static void -ref_executable (void) -{ - exec_ref_count ++; -} - -static void -unref_executable (void) -{ - exec_ref_count --; - if (exec_ref_count == 0) - g_main_loop_quit (0); -} - -static void -add_cb (EBook *book, EBookStatus status, const char *id, gpointer closure) -{ - switch (status) { - case E_BOOK_ERROR_OK: - unref_executable (); - break; - default: - g_main_loop_quit (NULL); - break; - } -} - -static void -use_addressbook (EBook *book, gpointer closure) -{ - GList *cards, *list; - char *filename = closure; - - if (book == NULL) - g_error (_("Error loading default addressbook.")); - - cards = e_card_load_cards_from_file (filename); - - ref_executable (); - - for (list = cards; list; list = list->next) { - ref_executable (); - e_book_add_card (book, list->data, add_cb, closure); - } - sync(); - - unref_executable (); -} - -int -main (int argc, char *argv[]) -{ - char *filename = NULL; - - struct poptOption options[] = { - { "input-file", '\0', POPT_ARG_STRING, &filename, 0, N_("Input File"), NULL }, - POPT_AUTOHELP - { NULL, '\0', 0, NULL, 0, NULL, NULL } - }; - - bindtextdomain (GETTEXT_PACKAGE, EVOLUTION_LOCALEDIR); - textdomain (GETTEXT_PACKAGE); - - gnome_program_init ("evolution-addressbook-import", VERSION, - LIBGNOMEUI_MODULE, argc, argv, - GNOME_PROGRAM_STANDARD_PROPERTIES, - GNOME_PARAM_POPT_TABLE, options, - NULL); - - if (filename == NULL) { - g_error (_("No filename provided.")); - } - - e_book_async_get_default_addressbook (use_addressbook, filename); - - bonobo_main (); - - return 0; -} |