From a4feb91644f29b043f4ea7695ca108faf0652ce4 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 7 Jul 2009 13:21:05 -0400 Subject: [PATCH] Fix single-actor widgets clutter_actor_unparent() is for use by container implementations only, unlike gtk_widget_unparent() https://bugzilla.gnome.org/show_bug.cgi?id=588090 --- js/ui/widgetBox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/widgetBox.js b/js/ui/widgetBox.js index 0c413e924..10cb362b4 100644 --- a/js/ui/widgetBox.js +++ b/js/ui/widgetBox.js @@ -196,7 +196,7 @@ WidgetBox.prototype = { this._egroup.show(); if (this._singleActor) { - this._widget.actor.unparent(); + this._widget.actor.get_parent().remove_actor(this._widget.actor); this._ebox.append(this._widget.actor, Big.BoxPackFlags.NONE); } @@ -244,7 +244,7 @@ WidgetBox.prototype = { this._cgroup.show(); if (this._singleActor) { - this._widget.actor.unparent(); + this._widget.actor.get_parent().remove_actor(this._widget.actor); this._cbox.append(this._widget.actor, Big.BoxPackFlags.NONE); }