seed r693 - trunk/libseed



Author: racarr
Date: Fri Jan  9 06:09:59 2009
New Revision: 693
URL: http://svn.gnome.org/viewvc/seed?rev=693&view=rev

Log:
Make returned GList/GSlist real arrays as opposed to objects with
properties at indexes.

Modified:
   trunk/libseed/seed-types.c

Modified: trunk/libseed/seed-types.c
==============================================================================
--- trunk/libseed/seed-types.c	(original)
+++ trunk/libseed/seed-types.c	Fri Jan  9 06:09:59 2009
@@ -675,7 +675,7 @@
 			gint i = 0;
 			GList *list = arg->v_pointer;
 
-			ret = JSObjectMake(ctx, NULL, NULL);
+			ret = JSObjectMakeArray(ctx, 0, NULL, exception);
 			list_type = g_type_info_get_param_type(type_info, 0);
 
 			for (; list != NULL; list = list->next)
@@ -702,7 +702,7 @@
 			gint i = 0;
 			GSList *list = arg->v_pointer;
 
-			ret = JSObjectMake(ctx, NULL, NULL);
+			ret = JSObjectMakeArray(ctx, 0, NULL, exception);
 			list_type = g_type_info_get_param_type(type_info, 0);
 
 			for (; list != NULL; list = list->next)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]