summaryrefslogtreecommitdiff
path: root/xfconf
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2012-04-17 21:50:42 +0200
committerNick Schermer <nick@xfce.org>2012-04-17 21:50:42 +0200
commit13455e6df99e6b4639cdca308c6e6042509379e1 (patch)
tree0ae5f4a65d59a421a25f21bb292628d44c6aee8f /xfconf
parentba6163a09b8aff9d99298d7031695d0c8bf40d65 (diff)
downloadxfconf-13455e6df99e6b4639cdca308c6e6042509379e1.tar.gz
Don't use deprecated function.
Diffstat (limited to 'xfconf')
-rw-r--r--xfconf/xfconf-channel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xfconf/xfconf-channel.c b/xfconf/xfconf-channel.c
index 1361956..9d906d3 100644
--- a/xfconf/xfconf-channel.c
+++ b/xfconf/xfconf-channel.c
@@ -1976,8 +1976,13 @@ xfconf_channel_get_structv(XfconfChannel *channel,
break;
case G_TYPE_CHAR:
+#if GLIB_CHECK_VERSION (2, 32, 0)
+ SET_STRUCT_VAL(gchar, G_TYPE_CHAR, ALIGNOF_GCHAR,
+ g_value_get_schar);
+#else
SET_STRUCT_VAL(gchar, G_TYPE_CHAR, ALIGNOF_GCHAR,
g_value_get_char);
+#endif
break;
case G_TYPE_UINT: