mirror of
https://github.com/elementary/gala.git
synced 2024-12-27 03:04:08 +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)
|
||||
{
|
||||
Clutter.Actor actor_tmp, old_parent;
|
||||
if (actor == new_parent)
|
||||
return;
|
||||
|
||||
if (actor == new_parent) return;
|
||||
actor_tmp = actor;
|
||||
|
||||
old_parent = actor.get_parent ();
|
||||
old_parent.remove_child (actor);
|
||||
new_parent.add_child (actor_tmp);
|
||||
actor.ref ();
|
||||
actor.get_parent ().remove_child (actor);
|
||||
new_parent.add_child (actor);
|
||||
actor.unref ();
|
||||
}
|
||||
|
||||
[CCode (cname="clutter_x11_handle_event")]
|
||||
|
Loading…
Reference in New Issue
Block a user