From 30eb9e4474d5f9942cba0cb974fb4b6c1e1712bc Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 1 Jul 2013 17:57:03 -0400 Subject: [PATCH] container: Remove the get_priority_range vmethod We now let full control to subclasses so we do not need it anymore. --- ges/ges-clip.c | 1 - ges/ges-container.c | 3 --- ges/ges-container.h | 2 -- 3 files changed, 6 deletions(-) diff --git a/ges/ges-clip.c b/ges/ges-clip.c index 4960749501..a5dad10d9e 100644 --- a/ges/ges-clip.c +++ b/ges/ges-clip.c @@ -708,7 +708,6 @@ ges_clip_class_init (GESClipClass * klass) element_class->set_max_duration = _set_max_duration; /* TODO implement the deep_copy Virtual method */ - container_class->get_priority_range = _get_priority_range; container_class->add_child = _add_child; container_class->remove_child = _remove_child; container_class->child_removed = _child_removed; diff --git a/ges/ges-container.c b/ges/ges-container.c index da64316965..4b6c20c12e 100644 --- a/ges/ges-container.c +++ b/ges/ges-container.c @@ -449,7 +449,6 @@ ges_container_add (GESContainer * container, GESTimelineElement * child) ChildMapping *mapping; GESContainerClass *class; GESContainerPrivate *priv; - guint32 min_prio, max_prio; g_return_val_if_fail (GES_IS_CONTAINER (container), FALSE); g_return_val_if_fail (GES_IS_TIMELINE_ELEMENT (child), FALSE); @@ -476,8 +475,6 @@ ges_container_add (GESContainer * container, GESTimelineElement * child) mapping->start_offset = _START (container) - _START (child); mapping->duration_offset = _DURATION (container) - _DURATION (child); mapping->inpoint_offset = _INPOINT (container) - _INPOINT (child); - GES_CONTAINER_GET_CLASS (container)->get_priority_range (container, - &min_prio, &max_prio); g_hash_table_insert (priv->mappings, child, mapping); diff --git a/ges/ges-container.h b/ges/ges-container.h index 97a38df3a0..3edbd4786c 100644 --- a/ges/ges-container.h +++ b/ges/ges-container.h @@ -101,7 +101,6 @@ struct _GESContainer * @child_removed: Virtual method that is called right after a #GESTimelineElement is removed * @remove_child: Virtual method to remove a child * @add_child: Virtual method to add a child - * @get_priority_range: Returns the range of possible priority in which the children can be in. * @ungroup: Ungroups the #GESTimelineElement contained in this #GESContainer, creating new * @group: Groups the #GESContainers together * #GESContainer containing those #GESTimelineElement apropriately. @@ -117,7 +116,6 @@ struct _GESContainerClass void (*child_removed) (GESContainer *container, GESTimelineElement *element); gboolean (*add_child) (GESContainer *container, GESTimelineElement *element); gboolean (*remove_child) (GESContainer *container, GESTimelineElement *element); - void (*get_priority_range) (GESContainer *container, guint32 *min_prio, guint32 *max_prio); GList* (*ungroup) (GESContainer *container, gboolean recursive); GESContainer * (*group) (GList *containers); gboolean (*edit) (GESContainer * container, -- 2.34.1