container: Remove the get_priority_range vmethod

We now let full control to subclasses so we do not need it anymore.
This commit is contained in:
Thibault Saunier 2013-07-01 17:57:03 -04:00 committed by Mathieu Duponchelle
parent 9e15e13983
commit 30eb9e4474
3 changed files with 0 additions and 6 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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,