[Xfce4-commits] <xfconf:master> Don't use deprecated function.

Nick Schermer noreply at xfce.org
Tue Apr 17 21:52:01 CEST 2012


Updating branch refs/heads/master
         to 13455e6df99e6b4639cdca308c6e6042509379e1 (commit)
       from ba6163a09b8aff9d99298d7031695d0c8bf40d65 (commit)

commit 13455e6df99e6b4639cdca308c6e6042509379e1
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Apr 17 21:50:42 2012 +0200

    Don't use deprecated function.

 xfconf/xfconf-channel.c |    5 +++++
 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:


More information about the Xfce4-commits mailing list