seed r230 - trunk/libseed



Author: racarr
Date: Mon Nov 10 13:11:29 2008
New Revision: 230
URL: http://svn.gnome.org/viewvc/seed?rev=230&view=rev

Log:
Don't attempt to do signal return type for G_TYPE_NONE, this causes the seed_gvalue_from_seed_value function to attempt to guess the return type, and then it puts bad things in the return_value.


Modified:
   trunk/libseed/seed-signals.c

Modified: trunk/libseed/seed-signals.c
==============================================================================
--- trunk/libseed/seed-signals.c	(original)
+++ trunk/libseed/seed-signals.c	Mon Nov 10 13:11:29 2008
@@ -136,7 +136,8 @@
 			   seed_closure->this,
 			   n_param_values + 1, args, &exception);
 
-    if (ret && !JSValueIsNull(eng->context, ret))
+    if (ret && !JSValueIsNull(eng->context, ret) 
+	&& (seed_closure->return_type != G_TYPE_NONE))
     {
 	seed_gvalue_from_seed_value(ret, seed_closure->return_type,
 				    return_value, &exception);



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