From 9364fe50368e2c48b1987edd43c92c1ecd1cd8cd Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 23 Apr 2008 09:19:23 +0000 Subject: ** Fix for bug #529254 2008-04-23 Milan Crha ** Fix for bug #529254 * e-util/e-util.c: (e_write_file_uri): Save file properly. Handle either URI or filename. Return success or failure, not gint. * addressbook/gui/widgets/eab-gui-util.c: (save_it): Prototype and return value of e_write_file_uri has been changed. svn path=/trunk/; revision=35409 --- addressbook/ChangeLog | 7 +++++++ addressbook/gui/widgets/eab-gui-util.c | 4 +--- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 49fba26257..f93fe4162c 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2008-04-23 Milan Crha + + ** Part of fix for bug #529254 + + * gui/widgets/eab-gui-util.c: (save_it): + Prototype and return value of e_write_file_uri has been changed. + 2008-04-22 Matthew Barnes ** Fixes bug #529465 diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c index 27b81e7110..6b8973637b 100644 --- a/addressbook/gui/widgets/eab-gui-util.c +++ b/addressbook/gui/widgets/eab-gui-util.c @@ -353,7 +353,6 @@ save_it(GtkWidget *widget, SaveAsInfo *info) { const char *filename; char *uri; - gint error = 0; gint response = 0; @@ -370,8 +369,7 @@ save_it(GtkWidget *widget, SaveAsInfo *info) } } - error = e_write_file_uri (uri, info->vcard); - if (error != 0) { + if (!e_write_file_uri (uri, info->vcard)) { char *err_str_ext; if (info->has_multiple_contacts) { /* more than one, finding the total number of contacts might -- cgit v1.2.3