/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ #include #include #include #include #include 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) gtk_exit (0); } static void add_cb (EBook *book, EBookStatus status, const char *id, gpointer closure) { switch (status) { case E_BOOK_STATUS_SUCCESS: unref_executable (); break; default: gtk_exit (status); 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 }, { NULL, '\0', POPT_ARG_INCLUDE_TABLE, &oaf_popt_options, 0, NULL, NULL }, POPT_AUTOHELP { NULL, '\0', 0, NULL, 0, NULL, NULL } }; bindtextdomain (PACKAGE, EVOLUTION_LOCALEDIR); textdomain (PACKAGE); gnome_init_with_popt_table ("evolution-addressbook-clean", "0.0", argc, argv, options, 0, NULL); if (filename == NULL) { g_error (_("No filename provided.")); } oaf_init (argc, argv); if (bonobo_init (CORBA_OBJECT_NIL, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL) == FALSE) g_error (_("Could not initialize Bonobo")); e_book_use_local_address_book (use_addressbook, filename); bonobo_main (); return 0; } ctron4/files/ini-1.3.7 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0
* graphics/dataplot: Update to newest commitTobias Kortkamp2020-07-043-8/+7
* - update libgd to 2.3.0Dirk Meyer2020-05-051-0/+1
* graphics/dataplot: Update 20190426 -> 20200229Yuri Victorovich2020-03-242-9/+9
* Add USES=xorg USES=gl, ports categories gNiclas Zeising2019-11-061-1/+1
* - Cosmetic fixesDmitry Marakasov2019-09-052-11014/+7
* graphics/dataplot: Fix distinfo after r508362Tobias Kortkamp2019-08-111-2/+2
* graphics/dataplot: replace numberingn to preserve the time/version continuumPedro F. Giffuni2019-08-081-1/+1
* graphics/dataplot: update to version g20190426Pedro F. Giffuni2019-08-075-378/+11070
* Mark BROKEN: unfetchableAntoine Brodin2019-08-041-0/+2
* graphics/dataplot: Fix WWW.Gleb Popov2019-08-031-1/+1
* Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2019-07-271-1/+1
* Related to revision 499061 bump ports with USES=fortran to have themGerald Pfeifer2019-04-221-1/+1
* Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2018-12-121-1/+1
* Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2018-07-30