[gjs] GObject: fix coercion for GObject.Char and GObject.UChar
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] GObject: fix coercion for GObject.Char and GObject.UChar
- Date: Sun, 2 Mar 2014 14:31:27 +0000 (UTC)
commit 524a20fcf323efcf3e377a582c6b845e4e207d27
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sun Mar 2 15:30:37 2014 +0100
GObject: fix coercion for GObject.Char and GObject.UChar
gjs marshals these as numbers, not strings.
modules/overrides/GObject.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/overrides/GObject.js b/modules/overrides/GObject.js
index 2be22c2..17b970a 100644
--- a/modules/overrides/GObject.js
+++ b/modules/overrides/GObject.js
@@ -152,8 +152,8 @@ function _init() {
}
_makeDummyClass(this, 'VoidType', 'NONE', 'void', function() {});
- _makeDummyClass(this, 'Char', 'CHAR', 'gchar', String);
- _makeDummyClass(this, 'UChar', 'UCHAR', 'guchar', String);
+ _makeDummyClass(this, 'Char', 'CHAR', 'gchar', Number);
+ _makeDummyClass(this, 'UChar', 'UCHAR', 'guchar', Number);
_makeDummyClass(this, 'Unichar', 'UNICHAR', 'gint', String);
this.TYPE_BOOLEAN = GObject.type_from_name('gboolean');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]