seed r106 - trunk/libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r106 - trunk/libseed
- Date: Tue, 4 Nov 2008 09:11:14 +0000 (UTC)
Author: racarr
Date: Tue Nov 4 09:11:14 2008
New Revision: 106
URL: http://svn.gnome.org/viewvc/seed?rev=106&view=rev
Log:
Constants.
Modified:
trunk/libseed/seed-engine.c
Modified: trunk/libseed/seed-engine.c
==============================================================================
--- trunk/libseed/seed-engine.c (original)
+++ trunk/libseed/seed-engine.c Tue Nov 4 09:11:14 2008
@@ -715,7 +715,22 @@
seed_value_set_property(namespace_ref,
g_base_info_get_name(info),
(JSValueRef)callback_ref);
+ } else if (info &&
+ (g_base_info_get_type(info) == GI_INFO_TYPE_CONSTANT))
+ {
+ GArgument argument;
+ JSValueRef constant_value;
+
+ g_constant_info_get_value((GIConstantInfo *)info, &argument);
+ constant_value =
+ seed_gi_argument_make_js(&argument,
+ g_constant_info_get_type((GIConstantInfo *)info));
+ seed_value_set_property(namespace_ref,
+ g_base_info_get_name(info),
+ constant_value);
+
}
+
}
extension =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]