[gjs] value.c: Don't use deprecated gvalue calls
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] value.c: Don't use deprecated gvalue calls
- Date: Wed, 19 Oct 2011 16:38:16 +0000 (UTC)
commit b3cfcced954b9bec967d16ad6dc77c253077aafc
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Oct 17 11:16:45 2011 -0400
value.c: Don't use deprecated gvalue calls
https://bugzilla.gnome.org/show_bug.cgi?id=662064
gi/value.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/value.c b/gi/value.c
index a8f1424..6e86493 100644
--- a/gi/value.c
+++ b/gi/value.c
@@ -250,7 +250,7 @@ gjs_value_to_g_value_internal(JSContext *context,
} else if (gtype == G_TYPE_CHAR) {
gint32 i;
if (JS_ValueToInt32(context, value, &i) && i >= SCHAR_MIN && i <= SCHAR_MAX) {
- g_value_set_char(gvalue, (signed char)i);
+ g_value_set_schar(gvalue, (signed char)i);
} else {
gjs_throw(context,
"Wrong type %s; char expected",
@@ -592,7 +592,7 @@ gjs_value_from_g_value_internal(JSContext *context,
}
} else if (gtype == G_TYPE_CHAR) {
char v;
- v = g_value_get_char(gvalue);
+ v = g_value_get_schar(gvalue);
*value_p = INT_TO_JSVAL(v);
} else if (gtype == G_TYPE_UCHAR) {
unsigned char v;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]