gst/gstchildproxy.c: Improve docs and add some ideas for making this more general...
authorStefan Kost <ensonic@users.sourceforge.net>
Thu, 10 Jan 2008 21:06:58 +0000 (21:06 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Thu, 10 Jan 2008 21:06:58 +0000 (21:06 +0000)
Original commit message from CVS:
* gst/gstchildproxy.c:
Improve docs and add some ideas for making this more general-purpose.

ChangeLog
gst/gstchildproxy.c

index 9f60bb6..01af162 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-10  Stefan Kost  <ensonic@users.sf.net>
+
+       * gst/gstchildproxy.c:
+         Improve docs and add some ideas for making this more general-purpose.
+
 2008-01-10  Tim-Philipp Müller  <tim at centricular dot net>
 
        * gst/gst_private.h: (GST_CAT_TYPES):
index 48a25fe..ccb6890 100644 (file)
  * @short_description: Interface for multi child elements.
  * @see_also: #GstBin
  *
- * This interface abstracts handling of property sets for child elements.
- * Imagine elements such as mixers or polyphonic generators. They all have
- * multiple #GstPad or some kind of voice objects. The element acts as a
- * parent for those child objects. Each child has the same properties.
+ * This interface abstracts handling of property sets for elements with
+ * children. Imagine elements such as mixers or polyphonic generators. They all
+ * have multiple #GstPad or some kind of voice objects. Another use case are
+ * container elements like #GstBin.
+ * The element implementing the interface acts as a parent for those child
+ * objects.
  *
  * By implementing this interface the child properties can be accessed from the
  * parent element by using gst_child_proxy_get() and gst_child_proxy_set().
  *
  * Property names are written as "child-name::property-name". The whole naming
  * scheme is recursive. Thus "child1::child2::property" is valid too, if
- * "child1" also implements the #GstChildProxy interface.
+ * "child1" and "child2" implement the #GstChildProxy interface.
+ */
+/* FIXME-0.11:
+ * it would be nice to make gst_child_proxy_get_child_by_name virtual too and
+ * use GObject instead of GstObject. We could eventually provide the current
+ * implementation as a default if children are GstObjects.
+ * This change would allow to propose the interface for inclusion with
+ * glib/gobject. IMHO this is useful for GtkContainer and compound widgets too.
  */
 
 #include "gst_private.h"