diff options
Diffstat (limited to 'plugins')
-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) |