From e06178d6876873dc1dcba02f9307c905408bfcc8 Mon Sep 17 00:00:00 2001 From: nobody Date: Sun, 10 Mar 2002 15:35:38 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'GEDIT_1_115_0'. svn path=/tags/GEDIT_1_115_0/; revision=16028 --- .../backend/ebook/load-gnomecard-addressbook.c | 91 ---------------------- 1 file changed, 91 deletions(-) delete mode 100644 addressbook/backend/ebook/load-gnomecard-addressbook.c (limited to 'addressbook/backend/ebook/load-gnomecard-addressbook.c') diff --git a/addressbook/backend/ebook/load-gnomecard-addressbook.c b/addressbook/backend/ebook/load-gnomecard-addressbook.c deleted file mode 100644 index 6f592a4664..0000000000 --- a/addressbook/backend/ebook/load-gnomecard-addressbook.c +++ /dev/null @@ -1,91 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "e-book.h" - -static CORBA_Environment ev; - -static void -init_bonobo (int argc, char **argv) -{ - if (bonobo_init (CORBA_OBJECT_NIL, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL) == FALSE) - g_error (_("Could not initialize Bonobo")); -} - -static void -add_card_cb (EBook *book, EBookStatus status, const gchar *id, gpointer closure) -{ - ECard *card = E_CARD(closure); - char *vcard = e_card_get_vcard_assume_utf8(card); - g_print ("Saved card: %s\n", vcard); - g_free(vcard); - gtk_object_unref(GTK_OBJECT(card)); -} - -static void -book_open_cb (EBook *book, EBookStatus status, gpointer closure) -{ - GList *list = e_card_load_cards_from_file_with_default_charset("gnomecard.vcf", "ISO-8859-1"); - GList *iterator; - for (iterator = list; iterator; iterator = g_list_next(iterator)) { - ECard *card = iterator->data; - e_book_add_card(book, card, add_card_cb, card); - } - g_list_free(list); -} - -static guint -ebook_create (void) -{ - EBook *book; - gchar *path, *uri; - - book = e_book_new (); - - if (!book) { - printf ("%s: %s(): Couldn't create EBook, bailing.\n", - __FILE__, - __FUNCTION__); - return FALSE; - } - - - path = g_concat_dir_and_file (g_get_home_dir (), - "evolution/local/Contacts/addressbook.db"); - uri = g_strdup_printf ("file://%s", path); - g_free (path); - - if (! e_book_load_uri (book, uri, book_open_cb, NULL)) { - printf ("error calling load_uri!\n"); - } - g_free(uri); - - - return FALSE; -} - -int -main (int argc, char **argv) -{ - - CORBA_exception_init (&ev); - - gnome_init_with_popt_table("blah", "0.0", argc, argv, NULL, 0, NULL); - oaf_init (argc, argv); - init_bonobo (argc, argv); - - gtk_idle_add ((GtkFunction) ebook_create, NULL); - - bonobo_main (); - - return 0; -} -- cgit and_yarn/devel/electron4/files/serve-10.1.2 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/french
Commit message (Expand)AuthorAgeFilesLines
* Expand FreeBSD 12 conditionals to include 13.0-CURRENTjbeich2018-10-241-0/+1
* Cleanup plistsantoine2018-10-011-1289/+1289
* Update to 6.3sunpoet2018-08-222-4/+4
* Upgrade Code_Aster to 13.6.0-1.thierry2018-08-188-2703/+2101
* Update to 4.9.8joneum2018-08-072-4/+4
* Bump PORTREVISION for ports depending on the canonical version of GCCgerald2018-07-302-2/+2
* Update to 4.9.7joneum2018-07-082-4/+4
* Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mktcberner2018-06-291-2/+2
* - Update to 6.0.5lwhsu2018-06-271-5/+5
* - Switch to new test frameworkamdmi32018-06-071-17/+14
* homard is not compatible with python3antoine2018-05-281-1/+1
* Update to 4.9.6joneum2018-05-262-4/+4
* - Update to 6.0.4lwhsu2018-05-101-5/+5
* Since the upgrade of math/suitesparse to 5.2.0, it depends unconditionnaly onthierry2018-05-061-6/+3
* Mark BROKEN: conflicting dependenciesantoine2018-05-061-0/+2
* Only sleep in ports if BATCH/PACKAGE_BUILDING are not defined.mat2018-04-261-0/+2
* Update to 4.9.5joneum2018-04-212-4/+4
* - Revert r467691, testing this port requires installing it and some manual workamdmi32018-04-191-1/+1
* - Switch to new test frameworkamdmi32018-04-181-1/+1
* - Update to 6.0.3lwhsu2018-04-081-5/+5
* - Fix LICENSEamdmi32018-03-252-5/+5
* - Update LibreOffice to 6.0.2 [1]lwhsu2018-03-172-8/+5
* - Update WWWamdmi32018-03-132-1/+3
* Bump PORTREVISIONs of all users of math/mpc that we just updated togerald2018-03-113-3/+3
* - Update WWWamdmi32018-03-031-1/+1
* Remove dependency on the python metaportsantoine2018-02-201-2/+4
* Rename KDE4 meta portstcberner2018-02-101-1/+1
* Update to 4.9.4joneum2018-02-102-4/+4
* devel/eric6: update to 18.02dbn2018-02-083-11/+0
* Fix build on head.thierry2018-01-281-0/+1
* Securityupdate to 4.9.2:joneum2018-01-192-4/+4
* lang/eric6: update to 17.12dbn2018-01-171-3/+3
* devel/eric6: update to 17.11.1, add FLAVORSdbn2018-01-111-3/+3
* Update MASTER_SITES and WWWsunpoet2017-12-282-2/+2
* Update to 6.2sunpoet2017-12-082-4/+4
* Upgrade HDF5 to 1.8.20.thierry2017-12-032-4/+5
* Securityupdate to 4.9.1:joneum2017-12-022-6/+6
* Convert Python ports to FLAVORS.mat2017-11-302-2/+2
* Update to 4.9joneum2017-11-252-4/+4
* Upgrade - endly! - to Code_Aster 13.4.0-3.thierry2017-11-1524-2745/+8168
* Update to 5.3.7.jkim2017-11-031-5/+5
* */wordpress: update to 4.8.3joneum2017-11-022-4/+4
* evel/eric6: update to 17.10dbn2017-10-271-3/+3
* - Update to 4.8.2joneum2017-09-282-4/+4
* Update to 6.1sunpoet2017-09-272-6/+6
* Fix kde4-l10n packages after sysutils/filelight's updatetcberner2017-09-172-5/+1
* Bump PORTREVISION for ports depending on the canonical version of GCCgerald2017-09-113-3/+3
* Update to 5.3.6.jkim2017-09-061-5/+5
* - french/wordpress: Update from 4.8 to 4.8.1joneum2017-08-042-7/+5
* Update to 5.3.5.jkim2017-08-041-5/+5
* Mark BROKEN: size and checksum mismatchantoine2017-07-021-0/+2
* Update to 5.3.4.jkim2017-06-221-5/+5
* Update the Calligra ports to 3.0.1.rakuco2017-06-175-123/+0
* Upgrade science/hdf5-18 to 1.8.19.thierry2017-06-172-2/+2
* - Update 4 wordpress Ports to version 4.8joneum2017-06-122-4/+4
* - Update the Wordpress ports to 4.7.5joneum2017-05-222-4/+4
* Update to 5.3.3.jkim2017-05-201-5/+5
* - Update maintainer addressjoneum2017-05-161-1/+1
* Update to 5.2.7.jkim2017-05-051-5/+5
* Chase ffmpeg 3.3 update (ABI changes)riggs2017-04-252-1/+2
* - Revert the php7 switch, we can't force users to switch to php7 yet.miwi2017-04-251-1/+0
* - Update to 4.7.4miwi2017-04-252-4/+5
* - Fix sanity check by adding correct categorymiwi2017-04-211-1/+1
* - Repocopy www/wordpress -> french/wordpressmiwi2017-04-215-0/+72
* Rename the magic DISTVERSION into SPELLVERSION for the aspell ports.mat2017-04-121-1/+1
* Bump PORTREVISIONs for ports depending on the canonical version of GCC andgerald2017-04-013-3/+3
* Update to 5.2.6.jkim2017-03-281-5/+5
* Update to 5.2.5.jkim2017-02-011-5/+5
* Unbreak after the upgrade of Gcc to 4.9.thierry2017-01-233-2/+11
* Shebangfix only the target of the symlink, not the symlinkantoine2017-01-201-1/+1
* Update to 5.2.4.jkim2017-01-021-5/+5
* Remove BROKEN_FreeBSD_9sunpoet2017-01-011-1/+0