Commit 28d32d9f authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

operations/common/layer.c operations/common/load-buffer.c

2008-07-29  Sven Neumann  <sven@gimp.org>

	* operations/common/layer.c
	* operations/common/load-buffer.c
	* operations/common/load.c
	* operations/common/mblur.c
	* operations/common/open-buffer.c
	* operations/common/rectangle.c
	* operations/external/ff-load.c
	* operations/external/text.c
	* operations/external/v4l.c: use chant_parent_class instead of
	doing the g_type_class_peek_parent() dance.


svn path=/trunk/; revision=2541
parent 7c35a9c6
2008-07-29 Sven Neumann <sven@gimp.org>
* operations/common/layer.c
* operations/common/load-buffer.c
* operations/common/load.c
* operations/common/mblur.c
* operations/common/open-buffer.c
* operations/common/rectangle.c
* operations/external/ff-load.c
* operations/external/text.c
* operations/external/v4l.c: use chant_parent_class instead of
doing the g_type_class_peek_parent() dance.
2008-07-29 Sven Neumann <sven@gimp.org>
* operations/common/color-temperature.c: cache the coefficients
......
......@@ -214,11 +214,11 @@ finalize (GObject *object)
GeglChant *self = GEGL_CHANT (object);
if (self->cached_path)
g_free (self->cached_path);
g_free (self->cached_path);
if (self->p_composite_op)
g_free (self->p_composite_op);
g_free (self->p_composite_op);
G_OBJECT_CLASS (g_type_class_peek_parent (G_OBJECT_GET_CLASS (object)))->finalize (object);
G_OBJECT_CLASS (chant_parent_class)->finalize (object);
}
static void
......
......@@ -74,7 +74,7 @@ dispose (GObject *object)
o->buffer = NULL;
}
G_OBJECT_CLASS (g_type_class_peek_parent (G_OBJECT_GET_CLASS (object)))->dispose (object);
G_OBJECT_CLASS (chant_parent_class)->dispose (object);
}
......
......@@ -152,30 +152,20 @@ dispose (GObject *object)
self->cached_path = NULL;
}
G_OBJECT_CLASS (g_type_class_peek_parent (G_OBJECT_GET_CLASS (object)))->dispose (object);
G_OBJECT_CLASS (chant_parent_class)->dispose (object);
}
static void
finalize (GObject *object)
{
G_OBJECT_CLASS (g_type_class_peek_parent (G_OBJECT_GET_CLASS (object)))->finalize (object);
}
static void
gegl_chant_class_init (GeglChantClass *klass)
{
GeglOperationClass *operation_class;
GObjectClass *object_class;
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
operation_class = GEGL_OPERATION_CLASS (klass);
object_class = G_OBJECT_CLASS (klass);
object_class->dispose = dispose;
operation_class->attach = attach;
operation_class->detect = detect;
operation_class->prepare = prepare;
G_OBJECT_CLASS (klass)->dispose = dispose;
G_OBJECT_CLASS (klass)->finalize = finalize;
operation_class->name = "load";
operation_class->categories = "meta:input";
......
......@@ -115,7 +115,7 @@ finalize (GObject *object)
o->chant_data = NULL;
}
G_OBJECT_CLASS (g_type_class_peek_parent (G_OBJECT_GET_CLASS (object)))->finalize (object);
G_OBJECT_CLASS (chant_parent_class)->finalize (object);
}
......
......@@ -101,7 +101,7 @@ dispose (GObject *object)
o->chant_data = NULL;
}
G_OBJECT_CLASS (g_type_class_peek_parent (G_OBJECT_GET_CLASS (object)))->dispose (object);
G_OBJECT_CLASS (chant_parent_class)->dispose (object);
}
......@@ -114,12 +114,12 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
source_class = GEGL_OPERATION_SOURCE_CLASS (klass);
G_OBJECT_CLASS (klass)->dispose = dispose;
operation_class->process = process;
operation_class->get_bounding_box = get_bounding_box;
operation_class->get_cached_region = get_cached_region;
G_OBJECT_CLASS (klass)->dispose = dispose;
operation_class->name = "open-buffer";
operation_class->categories = "input";
operation_class->description = "A source that uses an on-disk GeglBuffer.";
......
......@@ -113,14 +113,6 @@ prepare (GeglOperation *operation)
}
}
static void
finalize (GObject *object)
{
/*GeglChant *self = GEGL_CHANT (object);*/
G_OBJECT_CLASS (g_type_class_peek_parent (G_OBJECT_GET_CLASS (object)))->finalize (object);
}
static void
gegl_chant_class_init (GeglChantClass *klass)
{
......@@ -130,8 +122,6 @@ gegl_chant_class_init (GeglChantClass *klass)
object_class = G_OBJECT_CLASS (klass);
operation_class = GEGL_OPERATION_CLASS (klass);
object_class->finalize = finalize;
operation_class->name = "rectangle";
operation_class->categories = "input";
operation_class->description = "A rectangular source of a fixed size with a solid color";
......
......@@ -416,7 +416,7 @@ finalize (GObject *object)
o->chant_data = NULL;
}
G_OBJECT_CLASS (g_type_class_peek_parent (G_OBJECT_GET_CLASS (object)))->finalize (object);
G_OBJECT_CLASS (chant_parent_class)->finalize (object);
}
......
......@@ -261,7 +261,7 @@ finalize (GObject *object)
if (self->cex.font)
g_free (self->cex.font);
G_OBJECT_CLASS (g_type_class_peek_parent (G_OBJECT_GET_CLASS (object)))->finalize (object);
G_OBJECT_CLASS (chant_parent_class)->finalize (object);
}
static void
......
......@@ -182,7 +182,7 @@ finalize (GObject *object)
o->chant_data = NULL;
}
G_OBJECT_CLASS (g_type_class_peek_parent (G_OBJECT_GET_CLASS (object)))->finalize (object);
G_OBJECT_CLASS (chant_parent_class)->finalize (object);
}
static gboolean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment