1 /* GStreamer Editing Services
2 * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #include "ges-simple-timeline-layer.h"
22 G_DEFINE_TYPE (GESSimpleTimelineLayer, ges_simple_timeline_layer, GES_TIMELINE_LAYER)
24 #define GET_PRIVATE(o) \
25 (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_SIMPLE_TIMELINE_LAYER, GESSimpleTimelineLayerPrivate))
27 typedef struct _GESSimpleTimelineLayerPrivate GESSimpleTimelineLayerPrivate;
29 struct _GESSimpleTimelineLayerPrivate {
34 ges_simple_timeline_layer_get_property (GObject *object, guint property_id,
35 GValue *value, GParamSpec *pspec)
37 switch (property_id) {
39 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
44 ges_simple_timeline_layer_set_property (GObject *object, guint property_id,
45 const GValue *value, GParamSpec *pspec)
47 switch (property_id) {
49 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
54 ges_simple_timeline_layer_dispose (GObject *object)
56 G_OBJECT_CLASS (ges_simple_timeline_layer_parent_class)->dispose (object);
60 ges_simple_timeline_layer_finalize (GObject *object)
62 G_OBJECT_CLASS (ges_simple_timeline_layer_parent_class)->finalize (object);
66 ges_simple_timeline_layer_class_init (GESSimpleTimelineLayerClass *klass)
68 GObjectClass *object_class = G_OBJECT_CLASS (klass);
70 g_type_class_add_private (klass, sizeof (GESSimpleTimelineLayerPrivate));
72 object_class->get_property = ges_simple_timeline_layer_get_property;
73 object_class->set_property = ges_simple_timeline_layer_set_property;
74 object_class->dispose = ges_simple_timeline_layer_dispose;
75 object_class->finalize = ges_simple_timeline_layer_finalize;
79 ges_simple_timeline_layer_init (GESSimpleTimelineLayer *self)
83 GESSimpleTimelineLayer*
84 ges_simple_timeline_layer_new (void)
86 return g_object_new (GES_TYPE_SIMPLE_TIMELINE_LAYER, NULL);