[seed] add paramspec patch

Michel Alexandre Salim salimma at fedoraproject.org
Mon Aug 8 11:27:40 UTC 2011


commit c38f664d2637c42871fe47b3c208d325f010f801
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date:   Mon Aug 8 13:26:56 2011 +0200

    add paramspec patch

 seed-3.1.1-paramspec.patch |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/seed-3.1.1-paramspec.patch b/seed-3.1.1-paramspec.patch
new file mode 100644
index 0000000..e3402bc
--- /dev/null
+++ b/seed-3.1.1-paramspec.patch
@@ -0,0 +1,33 @@
+From 3d87f450ed0f654b4125c685f0284c4fec5f040d Mon Sep 17 00:00:00 2001
+From: Colin Walters <walters at verbum.org>
+Date: Thu, 16 Jun 2011 15:27:34 -0400
+Subject: [PATCH] HACK: Don't bind ParamSpec
+
+In g-i GObject.ParamSpec changed to a class and not a structure.  The
+current manual seed binding blows up on this.  I don't know seed/JSCore
+enough to fix it, tihs just stubs out the manual bindings.
+---
+ libseed/seed-gtype.c |    2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/libseed/seed-gtype.c b/libseed/seed-gtype.c
+index 04be107..2e9e315 100644
+--- a/libseed/seed-gtype.c
++++ b/libseed/seed-gtype.c
+@@ -1032,11 +1032,13 @@ seed_define_gtype_functions (JSContextRef ctx)
+ 
+   proto = seed_struct_prototype (ctx, objectclass_info);
+ 
++#if 0
+   paramspec_info = g_irepository_find_by_name (NULL, "GObject", "ParamSpec");
+   proto = seed_struct_prototype (ctx, paramspec_info);
+ 
+   seed_create_function (ctx, "get", &seed_param_getter_invoked, proto);
+   seed_create_function (ctx, "set", &seed_param_setter_invoked, proto);
++#endif
+ }
+ 
+ void
+-- 
+1.7.5.2
+


More information about the scm-commits mailing list