mirror of
https://github.com/brl/mutter.git
synced 2025-03-30 23:23:47 +00:00
container: Do not emit a signal in the class handler
Yes, I am that stupid.
This commit is contained in:
parent
e8d3ab4fd3
commit
6df136ae7c
@ -932,9 +932,6 @@ child_notify (ClutterContainer *container,
|
|||||||
ClutterActor *actor,
|
ClutterActor *actor,
|
||||||
GParamSpec *pspec)
|
GParamSpec *pspec)
|
||||||
{
|
{
|
||||||
g_signal_emit (container, container_signals[CHILD_NOTIFY],
|
|
||||||
g_quark_from_string (pspec->name),
|
|
||||||
actor, pspec);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
@ -944,14 +941,15 @@ container_set_child_property (ClutterContainer *container,
|
|||||||
GParamSpec *pspec)
|
GParamSpec *pspec)
|
||||||
{
|
{
|
||||||
ClutterChildMeta *data;
|
ClutterChildMeta *data;
|
||||||
ClutterContainerIface *iface;
|
|
||||||
|
|
||||||
data = clutter_container_get_child_meta (container, actor);
|
data = clutter_container_get_child_meta (container, actor);
|
||||||
g_object_set_property (G_OBJECT (data), pspec->name, value);
|
g_object_set_property (G_OBJECT (data), pspec->name, value);
|
||||||
|
|
||||||
iface = CLUTTER_CONTAINER_GET_IFACE (container);
|
g_signal_emit (container, container_signals[CHILD_NOTIFY],
|
||||||
if (iface->child_notify != NULL)
|
(pspec->flags & G_PARAM_STATIC_NAME)
|
||||||
iface->child_notify (container, actor, pspec);
|
? g_quark_from_static_string (pspec->name)
|
||||||
|
: g_quark_from_string (pspec->name),
|
||||||
|
actor, pspec);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user