aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-03-15 08:35:19 +0800
committerChris Toshok <toshok@src.gnome.org>2003-03-15 08:35:19 +0800
commit1fffa41a16a749d2bb43295b587e18165ee43035 (patch)
tree079ae6d760eff918e2d4b1ac0c9b85267647f30b /tools
parentec640140b34656fe35752aaaa20d128c301d24b5 (diff)
downloadgsoc2013-evolution-1fffa41a16a749d2bb43295b587e18165ee43035.tar.gz
gsoc2013-evolution-1fffa41a16a749d2bb43295b587e18165ee43035.tar.zst
gsoc2013-evolution-1fffa41a16a749d2bb43295b587e18165ee43035.zip
use bonobo_main_quit, and clean this up a bit.
2003-03-14 Chris Toshok <toshok@ximian.com> * tools/evolution-addressbook-export.c (save_cards): use bonobo_main_quit, and clean this up a bit. svn path=/trunk/; revision=20305
Diffstat (limited to 'tools')
-rw-r--r--tools/evolution-addressbook-export.c11
1 files changed, 8 insertions, 3 deletions
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