[gthumb] added glib version check



commit 8d28e1bfa4e9f2a240859f5286bda98e39a5dfe7
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Mar 6 17:28:05 2010 +0100

    added glib version check

 gthumb/glib-utils.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gthumb/glib-utils.c b/gthumb/glib-utils.c
index 10e6264..6dc6b57 100644
--- a/gthumb/glib-utils.c
+++ b/gthumb/glib-utils.c
@@ -2290,11 +2290,11 @@ _g_file_attribute_value_free (_GFileAttributeValue *attr_value)
 	case G_FILE_ATTRIBUTE_TYPE_BYTE_STRING:
 		g_free (attr_value->v.string);
 		break;
-/* FIXME: add if glib >= 2.22
+#if GLIB_CHECK_VERSION(2,22,0)
 	case G_FILE_ATTRIBUTE_TYPE_STRINGV:
 		g_strfreev (attr_value->v.stringv);
 		break;
-*/
+#endif
 	case G_FILE_ATTRIBUTE_TYPE_OBJECT:
 		g_object_unref (attr_value->v.object);
 		break;
@@ -2329,11 +2329,11 @@ _g_file_info_get_value (GFileInfo  *info,
 	case G_FILE_ATTRIBUTE_TYPE_BYTE_STRING:
 		attr_value->v.string = g_strdup ((char *) value);
 		break;
-/* FIXME: add if glib >= 2.22
+#if GLIB_CHECK_VERSION(2,22,0)
 	case G_FILE_ATTRIBUTE_TYPE_STRINGV:
 		attr_value->v.stringv = g_strdupv ((char **) value);
 		break;
-*/
+#endif
 	case G_FILE_ATTRIBUTE_TYPE_BOOLEAN:
 		attr_value->v.boolean = * ((gboolean *) value);
 		break;
@@ -2376,11 +2376,11 @@ _g_file_info_set_value (GFileInfo            *info,
 	case G_FILE_ATTRIBUTE_TYPE_BYTE_STRING:
 		value = attr_value->v.string;
 		break;
-/* FIXME: add if glib >= 2.22
+#if GLIB_CHECK_VERSION(2,22,0)
 	case G_FILE_ATTRIBUTE_TYPE_STRINGV:
 		value = attr_value->v.stringv;
 		break;
-*/
+#endif
 	case G_FILE_ATTRIBUTE_TYPE_BOOLEAN:
 		value = &attr_value->v.boolean;
 		break;



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