From 1fffa41a16a749d2bb43295b587e18165ee43035 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Sat, 15 Mar 2003 00:35:19 +0000 Subject: use bonobo_main_quit, and clean this up a bit. 2003-03-14 Chris Toshok * tools/evolution-addressbook-export.c (save_cards): use bonobo_main_quit, and clean this up a bit. svn path=/trunk/; revision=20305 --- ChangeLog | 5 +++++ tools/evolution-addressbook-export.c | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 329008442a..17db1fc1b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-03-14 Chris Toshok + + * tools/evolution-addressbook-export.c (save_cards): use + bonobo_main_quit, and clean this up a bit. + 2003-03-06 Jeffrey Stedfast * configure.in: Added AC_C_INLINE - this should fix bug #39171. diff --git a/tools/evolution-addressbook-export.c b/tools/evolution-addressbook-export.c index 7f00157566..548feea760 100644 --- a/tools/evolution-addressbook-export.c +++ b/tools/evolution-addressbook-export.c @@ -24,9 +24,14 @@ save_cards (EBook *book, EBookSimpleQueryStatus status, const GList *cards, gpoi result = e_write_file (filename, vcard, O_CREAT | O_EXCL); else result = e_write_file_mkstemp (tmpname, vcard); - printf (tmpname); - sync(); - g_main_loop_quit (NULL); + if (result != 0) { + printf ("failed with result == %d", result); + } + else { + char *name = filename ? filename : tmpname; + printf ("succeeded writing %s\n", name); + } + bonobo_main_quit (); } static void -- cgit v1.2.3