[seed] Use the right type when creating GValues for GObject subtypes
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [seed] Use the right type when creating GValues for GObject subtypes
- Date: Wed, 30 Dec 2009 08:15:59 +0000 (UTC)
commit f4576cc155a1583da3d174165748e782690bcfd9
Author: Ryan Brown <r nodr org>
Date: Sat Dec 19 16:04:51 2009 -0500
Use the right type when creating GValues for GObject subtypes
libseed/seed-types.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libseed/seed-types.c b/libseed/seed-types.c
index 01d9c51..74d382c 100644
--- 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]