projects
/
gnome.seed
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c052e1
)
Use the right type when creating GValues for GObject subtypes
author
Ryan Brown
<r@nodr.org>
Sat, 19 Dec 2009 21:04:51 +0000
(16:04 -0500)
committer
Tim Horton
<hortont424@gmail.com>
Wed, 30 Dec 2009 08:15:12 +0000
(
03:15
-0500)
libseed/seed-types.c
patch
|
blob
|
history
diff --git
a/libseed/seed-types.c
b/libseed/seed-types.c
index
01d9c51
..
74d382c
100644
(file)
--- a/
libseed/seed-types.c
+++ b/
libseed/seed-types.c
@@
-1052,7
+1052,7
@@
seed_gvalue_from_seed_value (JSContextRef ctx,
if (o == NULL || g_type_is_a (G_OBJECT_TYPE (o), type))
{
- g_value_init (ret,
G_TYPE_OBJECT
);
+ g_value_init (ret,
type
);
g_value_set_object (ret, o);
return TRUE;