aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-07-13 23:51:01 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-07-14 22:08:50 +0800
commit902384a3419e107e3179c6b9c5e63193dd0f272b (patch)
tree9cbf4d5ca17ae063e4e2c887aa185423c7015ae0 /plugins
parentc10a7c96244b41bfe2c1acbdccff52ed16adf50d (diff)
downloadgsoc2013-evolution-902384a3419e107e3179c6b9c5e63193dd0f272b.tar
gsoc2013-evolution-902384a3419e107e3179c6b9c5e63193dd0f272b.tar.gz
gsoc2013-evolution-902384a3419e107e3179c6b9c5e63193dd0f272b.tar.bz2
gsoc2013-evolution-902384a3419e107e3179c6b9c5e63193dd0f272b.tar.lz
gsoc2013-evolution-902384a3419e107e3179c6b9c5e63193dd0f272b.tar.xz
gsoc2013-evolution-902384a3419e107e3179c6b9c5e63193dd0f272b.tar.zst
gsoc2013-evolution-902384a3419e107e3179c6b9c5e63193dd0f272b.zip
Work around deprecation of g_mount_unmount().
Diffstat (limited to 'plugins')
-rw-r--r--plugins/publish-calendar/publish-calendar.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/publish-calendar/publish-calendar.c b/plugins/publish-calendar/publish-calendar.c
index e1818d7bac..99ab2f9340 100644
--- a/plugins/publish-calendar/publish-calendar.c
+++ b/plugins/publish-calendar/publish-calendar.c
@@ -129,7 +129,11 @@ unmount_done_cb (GObject *source_object, GAsyncResult *res, gpointer user_data)
{
GError *error = NULL;
+#if GLIB_CHECK_VERSION(2,21,4)
+ g_mount_unmount_with_operation_finish (G_MOUNT (source_object), res, &error);
+#else
g_mount_unmount_finish (G_MOUNT (source_object), res, &error);
+#endif
if (error) {
g_warning ("Unmount failed: %s", error->message);
@@ -177,7 +181,11 @@ mount_ready_cb (GObject *source_object, GAsyncResult *res, gpointer user_data)
mount = g_file_find_enclosing_mount (G_FILE (source_object), NULL, NULL);
if (mount)
+#if GLIB_CHECK_VERSION(2,21,4)
+ g_mount_unmount_with_operation (mount, G_MOUNT_UNMOUNT_NONE, NULL, NULL, unmount_done_cb, NULL);
+#else
g_mount_unmount (mount, G_MOUNT_UNMOUNT_NONE, NULL, unmount_done_cb, NULL);
+#endif
g_object_unref (source_object);
}