seed r290 - trunk/libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r290 - trunk/libseed
- Date: Sat, 22 Nov 2008 00:59:28 +0000 (UTC)
Author: racarr
Date: Sat Nov 22 00:59:28 2008
New Revision: 290
URL: http://svn.gnome.org/viewvc/seed?rev=290&view=rev
Log:
Fix build.
Modified:
trunk/libseed/seed-gtype.c
trunk/libseed/seed-structs.c
Modified: trunk/libseed/seed-gtype.c
==============================================================================
--- trunk/libseed/seed-gtype.c (original)
+++ trunk/libseed/seed-gtype.c Sat Nov 22 00:59:28 2008
@@ -229,7 +229,7 @@
return JSValueMakeNull(eng->context);
}
- spec = (GParamSpec *)seed_struct_get_pointer(arguments[0]);
+ spec = (GParamSpec *)seed_pointer_get_pointer(arguments[0]);
oldcount = seed_object_get_property(thisObject, "property_count");
property_count = seed_value_to_int(oldcount, exception);
Modified: trunk/libseed/seed-structs.c
==============================================================================
--- trunk/libseed/seed-structs.c (original)
+++ trunk/libseed/seed-structs.c Sat Nov 22 00:59:28 2008
@@ -68,7 +68,7 @@
NULL, /* Static Values */
NULL, /* Static Functions */
NULL,
- NULL,
+ seed_pointer_finalize,
NULL, /* Has Property */
0,
NULL, /* Set Property */
@@ -88,7 +88,7 @@
NULL, /* Static Values */
NULL, /* Static Functions */
NULL,
- NULL,
+ seed_pointer_finalize,
NULL, /* Has Property */
0,
NULL, /* Set Property */
@@ -149,6 +149,22 @@
return object;
}
+JSObjectRef seed_make_boxed(gpointer boxed, GIBaseInfo * info)
+{
+ JSObjectRef object;
+ gint i, n_methods;
+ seed_struct_privates * priv = g_new0(seed_struct_privates, 1);
+
+ priv->info = info;
+ priv->pointer = boxed;
+
+ object = JSObjectMake(eng->context, seed_boxed_class, priv);
+
+ // FIXME: Instance methods?
+
+ return object;
+}
+
JSObjectRef seed_make_struct(gpointer strukt, GIBaseInfo * info)
{
JSObjectRef object;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]