summaryrefslogtreecommitdiff
path: root/gobject/gparamspecs.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>2001-11-14 03:02:22 +0000
committerTim Janik <timj@src.gnome.org>2001-11-14 03:02:22 +0000
commit35bf561f5fb29e5053077986b4a7c3b00ea9b4b9 (patch)
tree3add72388d8f19bd5548cc1226ef6e8d2704e972 /gobject/gparamspecs.c
parente5c99d932f79b11f35f0d604ef4ad8b4e4d0a7ba (diff)
add API for chaining: g_signal_chain_from_overridden() and
Tue Nov 13 23:18:10 2001 Tim Janik <timj@gtk.org> * gsignal.[hc]: add API for chaining: g_signal_chain_from_overridden() and g_signal_override_class_closure(), implementation yet to come. * gtype.[hc], Makefile.am: provide G_LOG_DOMAIN as compile flag. * gparam.[hc]: s/g_param_get/g_param_spec_get/ for get_nick, get_name and get_blurb, to be consistent with the rest of the g_param_spec_*() functions. * gparamspecs.[hc]: got rid of bogus GClosure paramspec. G_TYPE_CLOSURE is a boxed type already.
Diffstat (limited to 'gobject/gparamspecs.c')
-rw-r--r--gobject/gparamspecs.c72
1 files changed, 0 insertions, 72 deletions
diff --git a/gobject/gparamspecs.c b/gobject/gparamspecs.c
index f15727834..eda227338 100644
--- a/gobject/gparamspecs.c
+++ b/gobject/gparamspecs.c
@@ -774,45 +774,6 @@ param_pointer_values_cmp (GParamSpec *pspec,
}
static void
-param_closure_init (GParamSpec *pspec)
-{
- /* GParamSpecClosure *cspec = G_PARAM_SPEC_CLOSURE (pspec); */
-}
-
-static void
-param_closure_set_default (GParamSpec *pspec,
- GValue *value)
-{
- value->data[0].v_pointer = NULL;
-}
-
-static gboolean
-param_closure_validate (GParamSpec *pspec,
- GValue *value)
-{
- /* GParamSpecClosure *cspec = G_PARAM_SPEC_CLOSURE (pspec); */
- /* GClosure *closure = value->data[0].v_pointer; */
- guint changed = 0;
-
- /* we don't actually have necessary means to ensure closure validity */
-
- return changed;
-}
-
-static gint
-param_closure_values_cmp (GParamSpec *pspec,
- const GValue *value1,
- const GValue *value2)
-{
- guint8 *p1 = value1->data[0].v_pointer;
- guint8 *p2 = value2->data[0].v_pointer;
-
- /* not much to compare here, try to at least provide stable lesser/greater result */
-
- return p1 < p2 ? -1 : p1 > p2;
-}
-
-static void
param_value_array_init (GParamSpec *pspec)
{
GParamSpecValueArray *aspec = G_PARAM_SPEC_VALUE_ARRAY (pspec);
@@ -1326,23 +1287,6 @@ g_param_spec_types_init (void) /* sync with gtype.c */
g_assert (type == G_TYPE_PARAM_VALUE_ARRAY);
}
- /* G_TYPE_PARAM_CLOSURE
- */
- {
- static const GParamSpecTypeInfo pspec_info = {
- sizeof (GParamSpecClosure), /* instance_size */
- 0, /* n_preallocs */
- param_closure_init, /* instance_init */
- G_TYPE_CLOSURE, /* value_type */
- NULL, /* finalize */
- param_closure_set_default, /* value_set_default */
- param_closure_validate, /* value_validate */
- param_closure_values_cmp, /* values_cmp */
- };
- type = g_param_type_register_static ("GParamClosure", &pspec_info);
- g_assert (type == G_TYPE_PARAM_CLOSURE);
- }
-
/* G_TYPE_PARAM_OBJECT
*/
{
@@ -1829,22 +1773,6 @@ g_param_spec_value_array (const gchar *name,
}
GParamSpec*
-g_param_spec_closure (const gchar *name,
- const gchar *nick,
- const gchar *blurb,
- GParamFlags flags)
-{
- GParamSpecClosure *cspec;
-
- cspec = g_param_spec_internal (G_TYPE_PARAM_CLOSURE,
- name,
- nick,
- blurb,
- flags);
- return G_PARAM_SPEC (cspec);
-}
-
-GParamSpec*
g_param_spec_object (const gchar *name,
const gchar *nick,
const gchar *blurb,