Use the right type when creating GValues for GObject subtypes
authorRyan Brown <r@nodr.org>
Sat, 19 Dec 2009 21:04:51 +0000 (16:04 -0500)
committerTim Horton <hortont424@gmail.com>
Wed, 30 Dec 2009 08:15:12 +0000 (03:15 -0500)
libseed/seed-types.c

index 01d9c51..74d382c 100644 (file)
@@ -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;