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
This commit is contained in:
Chris Toshok
2003-03-15 00:35:19 +00:00
committed by Chris Toshok
parent ec640140b3
commit 1fffa41a16
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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.
2003-03-06 Jeffrey Stedfast <fejj@ximian.com>
* configure.in: Added AC_C_INLINE - this should fix bug #39171.

View File

@ -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