seed r113 - trunk/libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r113 - trunk/libseed
- Date: Wed, 5 Nov 2008 01:47:15 +0000 (UTC)
Author: racarr
Date: Wed Nov 5 01:47:15 2008
New Revision: 113
URL: http://svn.gnome.org/viewvc/seed?rev=113&view=rev
Log:
Make exceptions in constructor property conversion work.
Modified:
trunk/libseed/seed-engine.c
Modified: trunk/libseed/seed-engine.c
==============================================================================
--- trunk/libseed/seed-engine.c (original)
+++ trunk/libseed/seed-engine.c Wed Nov 5 01:47:15 2008
@@ -130,11 +130,15 @@
else
type = param_spec->value_type;
- if (!seed_gvalue_from_seed_value(jsprop_value,
- type, ¶ms[i].value, exception)) {
- g_free(prop_name);
- g_free(params);
- return 0;
+ seed_gvalue_from_seed_value(jsprop_value,
+ type, ¶ms[i].value, exception);
+
+ if (*exception)
+ {
+
+ g_free(prop_name);
+ g_free(params);
+ return 0;
}
params[i].name = prop_name;
@@ -149,7 +153,7 @@
if (!gobject)
JSValueMakeNull(eng->context);
- ret = (JSObjectRef) seed_value_from_object(gobject, exception);
+ ret = (JSObjectRef) seed_value_from_object(gobject, 0);
g_type_class_unref(oclass);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]