diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2008-04-20 03:53:51 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-04-20 03:53:51 +0800 |
commit | dae227365983880e24daede574bdc144c083e2ec (patch) | |
tree | 915d5cf406318bed3d5c66e7d0e23dbbae1f9da4 /plugins/ipod-sync | |
parent | 2758c38b48d3d50b13867152274ff4c83b753155 (diff) | |
download | gsoc2013-evolution-dae227365983880e24daede574bdc144c083e2ec.tar gsoc2013-evolution-dae227365983880e24daede574bdc144c083e2ec.tar.gz gsoc2013-evolution-dae227365983880e24daede574bdc144c083e2ec.tar.bz2 gsoc2013-evolution-dae227365983880e24daede574bdc144c083e2ec.tar.lz gsoc2013-evolution-dae227365983880e24daede574bdc144c083e2ec.tar.xz gsoc2013-evolution-dae227365983880e24daede574bdc144c083e2ec.tar.zst gsoc2013-evolution-dae227365983880e24daede574bdc144c083e2ec.zip |
Fix some compilation errors.
2008-04-19 Matthew Barnes <mbarnes@redhat.com>
* plugins/ipod-sync/ical-fomat.c (do_save_calendar_ical):
* plugins/ipod-sync/ipod-sync.c (open_for_writing),
(destination_save_addressbook):
Fix some compilation errors.
svn path=/trunk/; revision=35389
Diffstat (limited to 'plugins/ipod-sync')
-rw-r--r-- | plugins/ipod-sync/ChangeLog | 6 | ||||
-rw-r--r-- | plugins/ipod-sync/ical-format.c | 2 | ||||
-rw-r--r-- | plugins/ipod-sync/ipod-sync.c | 10 |
3 files changed, 13 insertions, 5 deletions
diff --git a/plugins/ipod-sync/ChangeLog b/plugins/ipod-sync/ChangeLog index d6f2a15aef..ce1f317c42 100644 --- a/plugins/ipod-sync/ChangeLog +++ b/plugins/ipod-sync/ChangeLog @@ -1,3 +1,9 @@ +2008-04-19 Matthew Barnes <mbarnes@redhat.com> + + * ical-fomat.c (do_save_calendar_ical): + * ipod-sync.c (open_for_writing), (destination_save_addressbook): + Fix some compilation errors. + 2008-04-17 Milan Crha <mcrha@redhat.com> ** Part of fix for bug #526739 diff --git a/plugins/ipod-sync/ical-format.c b/plugins/ipod-sync/ical-format.c index f5005c1bda..3c47a6555d 100644 --- a/plugins/ipod-sync/ical-format.c +++ b/plugins/ipod-sync/ical-format.c @@ -96,7 +96,7 @@ do_save_calendar_ical (FormatHandler *handler, EPlugin *ep, ECalPopupTargetSourc char *ical_str = icalcomponent_as_ical_string (top_level); g_output_stream_write_all (stream, ical_str, strlen (ical_str), NULL, NULL, &error); - g_output_stream_close (stream); + g_output_stream_close (stream, NULL, NULL); g_free (ical_str); } diff --git a/plugins/ipod-sync/ipod-sync.c b/plugins/ipod-sync/ipod-sync.c index c60d19c818..346e252411 100644 --- a/plugins/ipod-sync/ipod-sync.c +++ b/plugins/ipod-sync/ipod-sync.c @@ -30,6 +30,7 @@ #endif #include <glib.h> +#include <gio/gio.h> #include <glib/gi18n.h> #include <libebook/e-book.h> @@ -42,6 +43,7 @@ #include <addressbook/gui/widgets/eab-popup.h> #include <string.h> +#include "e-util/e-error.h" #include "format-handler.h" #include "evolution-ipod-sync.h" @@ -81,7 +83,7 @@ open_for_writing (GtkWindow *parent, const char *uri, GError **error) fostream = g_file_create (file, G_FILE_CREATE_NONE, NULL, &err); if (err && err->code == G_IO_ERROR_EXISTS) { - g_error_clear (&err); + g_clear_error (&err); if (e_error_run (parent, E_ERROR_ASK_FILE_EXISTS_OVERWRITE, uri, NULL) == GTK_RESPONSE_OK) { fostream = g_file_replace (file, NULL, FALSE, G_FILE_CREATE_NONE, NULL, &err); @@ -119,7 +121,7 @@ destination_save_addressbook (EPlugin *ep, EABPopupTargetSource *target) GList *contacts, *tmp; ESource *primary_source; gchar *uri; - GOutputSream *stream; + GOutputStream *stream; GError *error = NULL; char *dest_uri = NULL; char *mount = ipod_get_mount(); @@ -161,7 +163,7 @@ destination_save_addressbook (EPlugin *ep, EABPopupTargetSource *target) if (error) { display_error_message (gtk_widget_get_toplevel (GTK_WIDGET (target->selector)), error->message); - g_error_clear (&error); + g_clear_error (&error); } g_object_unref (contact); @@ -170,7 +172,7 @@ destination_save_addressbook (EPlugin *ep, EABPopupTargetSource *target) g_free (converted_vcard); } - g_output_stream_close (stream); + g_output_stream_close (stream, NULL, NULL); } if (stream) |