From a8c8b351983dea5aaf0232c67d04ad6b0db61b48 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Thu, 6 Nov 2008 22:46:12 -0600 Subject: [PATCH] Fixed up --- moo/mooedit/moofold.c | 37 ++++++------------------------------- 1 file changed, 6 insertions(+), 31 deletions(-) diff --git a/moo/mooedit/moofold.c b/moo/mooedit/moofold.c index 42bbb2d1..ebd4cfb0 100644 --- a/moo/mooedit/moofold.c +++ b/moo/mooedit/moofold.c @@ -25,12 +25,15 @@ #define WANT_CHECKS 0 #endif +static void moo_fold_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec); static void moo_fold_finalize (GObject *object); static void moo_fold_free_recursively (MooFold *fold); static int _moo_fold_get_end (MooFold *fold); - enum { PROP_0, PROP_PARENT, @@ -43,19 +46,9 @@ enum { PROP_COLLAPSED }; - /* MOO_TYPE_FOLD */ G_DEFINE_TYPE (MooFold, moo_fold, G_TYPE_OBJECT) -static void moo_fold_set_property (GObject *object, - guint prop_id, - const GValue *value, - GParamSpec *pspec); -static void moo_fold_get_property (GObject *object, - guint prop_id, - GValue *value, - GParamSpec *pspec); - static void moo_fold_class_init (MooFoldClass *klass) { @@ -63,7 +56,6 @@ moo_fold_class_init (MooFoldClass *klass) gobject_class->finalize = moo_fold_finalize; - gobject_class->set_property = moo_fold_set_property; gobject_class->get_property = moo_fold_get_property; g_object_class_install_property (gobject_class, @@ -121,7 +113,7 @@ moo_fold_class_init (MooFoldClass *klass) "Children Number", "Number of children", 0, G_MAXINT, 0, - G_PARAM_READWRITE)); + G_PARAM_READABLE)); g_object_class_install_property (gobject_class, @@ -172,7 +164,7 @@ moo_fold_get_property (GObject *object, break; case PROP_COLLAPSED: - g_value_set_object (value, fold->collapsed); + g_value_set_boolean (value, fold->collapsed); break; default: @@ -181,23 +173,6 @@ moo_fold_get_property (GObject *object, } } -static void -moo_fold_set_property (GObject *object, - guint prop_id, - const GValue *value, - GParamSpec *pspec) -{ - //MooFold *fold = MOO_FOLD (object); - - switch (prop_id) - { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); - break; - } -} - - static void moo_fold_init (MooFold *fold)