container: Remove the get_priority_range vmethod
authorThibault Saunier <thibault.saunier@collabora.com>
Mon, 1 Jul 2013 21:57:03 +0000 (17:57 -0400)
committerMathieu Duponchelle <mathieu.duponchelle@epitech.eu>
Tue, 9 Jul 2013 20:13:42 +0000 (22:13 +0200)
We now let full control to subclasses so we do not need it anymore.

ges/ges-clip.c
ges/ges-container.c
ges/ges-container.h

index 4960749..a5dad10 100644 (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;
index da64316..4b6c20c 100644 (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);
 
index 97a38df..3edbd47 100644 (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,