mirror of
https://github.com/elementary/gala.git
synced 2024-12-28 11:43:09 +03:00
Bugfix #1007843 method clean up by ricotz
This commit is contained in:
parent
feafb53f59
commit
4d29e6bb5b
@ -506,14 +506,13 @@ namespace Gala
|
|||||||
|
|
||||||
void clutter_actor_reparent (Clutter.Actor actor, Clutter.Actor new_parent)
|
void clutter_actor_reparent (Clutter.Actor actor, Clutter.Actor new_parent)
|
||||||
{
|
{
|
||||||
Clutter.Actor actor_tmp, old_parent;
|
if (actor == new_parent)
|
||||||
|
return;
|
||||||
|
|
||||||
if (actor == new_parent) return;
|
actor.ref ();
|
||||||
actor_tmp = actor;
|
actor.get_parent ().remove_child (actor);
|
||||||
|
new_parent.add_child (actor);
|
||||||
old_parent = actor.get_parent ();
|
actor.unref ();
|
||||||
old_parent.remove_child (actor);
|
|
||||||
new_parent.add_child (actor_tmp);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[CCode (cname="clutter_x11_handle_event")]
|
[CCode (cname="clutter_x11_handle_event")]
|
||||||
|
Loading…
Reference in New Issue
Block a user