[gnome-disk-utility] disk-image-mounter: Use UDISKS_CHECK_VERSION before using 1.97.0 API



commit a8de15d15253fd783acdeebd2dd298ee5a50dc6f
Author: David Zeuthen <davidz redhat com>
Date:   Tue May 8 16:36:48 2012 -0400

    disk-image-mounter: Use UDISKS_CHECK_VERSION before using 1.97.0 API
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 src/disk-image-mounter/main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/disk-image-mounter/main.c b/src/disk-image-mounter/main.c
index 4f5651c..c4c2a4c 100644
--- a/src/disk-image-mounter/main.c
+++ b/src/disk-image-mounter/main.c
@@ -390,6 +390,8 @@ main (int argc, char *argv[])
        */
       if (num_mounts > 0)
         {
+#ifdef UDISKS_CHECK_VERSION
+# if UDISKS_CHECK_VERSION(1,97,0)
           error = NULL;
           if (!udisks_loop_call_set_autoclear_sync (loop,
                                                     TRUE,
@@ -404,6 +406,8 @@ main (int argc, char *argv[])
                           error->message, g_quark_to_string (error->domain), error->code);
               g_error_free (error);
             }
+# endif
+#endif
           loop_device_objpaths = g_list_prepend (loop_device_objpaths, g_strdup (loop_object_path));
         }
       else if (loop != NULL)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]