container: Add child_notify() wrapper

The child_notify() virtual function on ClutterContainer does not have a
wrapper for implementations to call.
This commit is contained in:
Emmanuele Bassi 2010-09-30 14:58:23 +01:00
parent fc344fb93a
commit 7ac84cf7a3
3 changed files with 32 additions and 0 deletions

View File

@ -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 <function>child_notify()</function> 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);
}

View File

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

View File

@ -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
<SUBSECTION>
clutter_container_create_child_meta