projects
/
gnome.seed
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79492a4
)
Fix Bug #610533 - Support void* pointers
author
Alan Knowles
<alan@akbkhome.com>
Sun, 21 Feb 2010 03:32:35 +0000
(11:32 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Sun, 21 Feb 2010 03:32:35 +0000
(11:32 +0800)
Gio.outputstream.write() uses void* pointers to write generic data.
libseed/seed-types.c
patch
|
blob
|
history
diff --git
a/libseed/seed-types.c
b/libseed/seed-types.c
index
67060be
..
be763f2
100644
(file)
--- a/
libseed/seed-types.c
+++ b/
libseed/seed-types.c
@@
-466,6
+466,10
@@
seed_gi_make_argument (JSContextRef ctx,
switch (gi_tag)
{
case GI_TYPE_TAG_VOID:
+ // things like gio.outputstream.write use void pointers
+ if (g_type_info_is_pointer (type_info))
+ arg->v_string = seed_value_to_string (ctx, value, exception);
+
break;
case GI_TYPE_TAG_BOOLEAN:
arg->v_boolean = seed_value_to_boolean (ctx, value, exception);