diff --git a/clutter/clutter-container.c b/clutter/clutter-container.c index b18aec555..df063b4ba 100644 --- a/clutter/clutter-container.c +++ b/clutter/clutter-container.c @@ -1225,3 +1225,31 @@ clutter_container_child_get (ClutterContainer *container, va_end (var_args); } + +/** + * clutter_container_child_notify: + * @container: a #ClutterContainer + * @child: a #ClutterActor + * @pspec: a #GParamSpec + * + * Calls the child_notify() virtual function of + * #ClutterContainer. The default implementation will emit the + * #ClutterContainer::child-notify signal. + * + * Since: 1.6 + */ +void +clutter_container_child_notify (ClutterContainer *container, + ClutterActor *child, + GParamSpec *pspec) +{ + g_return_if_fail (CLUTTER_IS_CONTAINER (container)); + g_return_if_fail (CLUTTER_IS_ACTOR (child)); + g_return_if_fail (pspec != NULL); + + g_return_if_fail (clutter_actor_get_parent (child) == CLUTTER_ACTOR (container)); + + CLUTTER_CONTAINER_GET_IFACE (container)->child_notify (container, + child, + pspec); +} diff --git a/clutter/clutter-container.h b/clutter/clutter-container.h index cd89e1911..2b5534dbe 100644 --- a/clutter/clutter-container.h +++ b/clutter/clutter-container.h @@ -202,6 +202,9 @@ void clutter_container_child_get (ClutterContaine const gchar *first_prop, ...) G_GNUC_NULL_TERMINATED; +void clutter_container_child_notify (ClutterContainer *container, + ClutterActor *child, + GParamSpec *pspec); G_END_DECLS diff --git a/doc/reference/clutter/clutter-sections.txt b/doc/reference/clutter/clutter-sections.txt index f0109fe04..485b77ca7 100644 --- a/doc/reference/clutter/clutter-sections.txt +++ b/doc/reference/clutter/clutter-sections.txt @@ -203,6 +203,7 @@ clutter_container_child_set_property clutter_container_child_get_property clutter_container_child_set clutter_container_child_get +clutter_container_child_notify clutter_container_create_child_meta