[seed] Revert "[libseed] Commit c7daca0f removed set/get_property on gtype class."
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [seed] Revert "[libseed] Commit c7daca0f removed set/get_property on gtype class."
- Date: Fri, 31 Jul 2009 04:31:33 +0000 (UTC)
commit 1ee31abd425e67a8d202a576a2520691ef6368be
Author: Tim Horton <hortont424 gmail com>
Date: Fri Jul 31 00:21:17 2009 -0400
Revert "[libseed] Commit c7daca0f removed set/get_property on gtype class."
This reverts commit a5abcd40e738bc9d30cfec5369aca74b06cbab24.
libseed/seed-gtype.c | 40 ----------------------------------------
1 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/libseed/seed-gtype.c b/libseed/seed-gtype.c
index 7ddacb4..d2e0532 100644
--- a/libseed/seed-gtype.c
+++ b/libseed/seed-gtype.c
@@ -193,44 +193,6 @@ seed_gsignal_method_invoked (JSContextRef ctx,
return (JSValueRef) seed_value_from_uint (ctx, signal_id, exception);
}
-static void
-seed_gtype_set_property (GObject * object,
- guint property_id,
- const GValue * value, GParamSpec * spec)
-{
- JSContextRef ctx = JSGlobalContextCreateInGroup (context_group, 0);
- gchar *name = g_strjoin (NULL, "_", spec->name, NULL);
- JSObjectRef jsobj = (JSObjectRef) seed_value_from_object (ctx, object, 0);
-
- seed_prepare_global_context (ctx);
-
- seed_object_set_property (ctx, jsobj, name,
- seed_value_from_gvalue (ctx, (GValue *) value, 0));
-
- g_free (name);
- JSGlobalContextRelease ((JSGlobalContextRef) ctx);
-}
-
-static void
-seed_gtype_get_property (GObject * object,
- guint property_id,
- GValue * value, GParamSpec * spec)
-{
- // TODO: Exceptions
- JSContextRef ctx = JSGlobalContextCreateInGroup (context_group, 0);
- gchar *name = g_strjoin (NULL, "_", spec->name, NULL);
- JSObjectRef jsobj = (JSObjectRef) seed_value_from_object (ctx, object, 0);
- JSValueRef jsval = seed_object_get_property (ctx, jsobj,
- name);
-
- seed_prepare_global_context (ctx);
-
- seed_gvalue_from_seed_value (ctx, jsval, spec->value_type, value, 0);
-
- g_free (name);
- JSGlobalContextRelease ((JSGlobalContextRef) ctx);
-}
-
static GIBaseInfo *
seed_get_class_info_for_type (GType type)
{
@@ -682,8 +644,6 @@ seed_gtype_class_init (gpointer g_class, gpointer class_data)
priv = (SeedGClassPrivates *) class_data;
- ((GObjectClass *) g_class)->get_property = seed_gtype_get_property;
- ((GObjectClass *) g_class)->set_property = seed_gtype_set_property;
((GObjectClass *) g_class)->constructor = seed_gtype_construct;
ctx = JSGlobalContextCreateInGroup (context_group, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]