summaryrefslogtreecommitdiff
path: root/xfconf
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2012-04-13 17:50:15 +0200
committerNick Schermer <nick@xfce.org>2012-04-13 17:51:51 +0200
commit93e8623827e34b15694f4f2bb305e6171d8a8ecf (patch)
treeeb720b9ba126cad2e4306b4d8f997adf6e62b143 /xfconf
parent53a1425b3bcd4fcfa8cec130ea3fb5ed163eb83e (diff)
downloadxfconf-93e8623827e34b15694f4f2bb305e6171d8a8ecf.tar.gz
Don't use deprecated g_value_set_char (bug #8690).
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 5539707..1361956 100644
--- a/xfconf/xfconf-channel.c
+++ b/xfconf/xfconf-channel.c
@@ -2195,8 +2195,13 @@ xfconf_channel_set_structv(XfconfChannel *channel,
break;
case G_TYPE_CHAR:
+#if GLIB_CHECK_VERSION (2, 32, 0)
+ GET_STRUCT_VAL(gchar, G_TYPE_CHAR, ALIGNOF_GCHAR,
+ g_value_set_schar);
+#else
GET_STRUCT_VAL(gchar, G_TYPE_CHAR, ALIGNOF_GCHAR,
g_value_set_char);
+#endif
break;
case G_TYPE_UINT: