Commits

Jeff Sparkes committed ec1429c

g_value_get_schar is relatively recent.

* ui-gtk.c (g_type_to_lisp): g_value_get_schar only exists in more
recent glib.

  • Participants
  • Parent commits 514700a

Comments (0)

Files changed (2)

File src/ChangeLog.GTK

 2013-11-15  Jeff Sparkes  <jsparkes@gmail.com>
 
+	* ui-gtk.c (g_type_to_lisp): g_value_get_schar only exists in more
+	recent glib.
+
 	* redisplay-gtk.c (XLIKE_clear_frame): Use GdkRectangle to support
 	older GTK 2.
 

File src/ui-gtk.c

     type = g_type_parent (type);
 
   assert (type != G_TYPE_NONE);
-     
+
   switch (type)
     {
     case G_TYPE_NONE:
       return (Qnil);
     case G_TYPE_CHAR:
+#if GLIB_CHECK_VERSION(2,30,1)
       return (make_char (g_value_get_schar (arg)));
+#else
+      return (make_char (g_value_get_char (arg)));
+#endif
     case G_TYPE_UCHAR:
       return (make_char (g_value_get_uchar (arg)));
     case G_TYPE_BOOLEAN: