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
This commit is contained in:
Dan Winship 2009-07-07 13:21:05 -04:00
parent 778fd72e22
commit a4feb91644

View File

@ -196,7 +196,7 @@ WidgetBox.prototype = {
this._egroup.show(); this._egroup.show();
if (this._singleActor) { 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); this._ebox.append(this._widget.actor, Big.BoxPackFlags.NONE);
} }
@ -244,7 +244,7 @@ WidgetBox.prototype = {
this._cgroup.show(); this._cgroup.show();
if (this._singleActor) { 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); this._cbox.append(this._widget.actor, Big.BoxPackFlags.NONE);
} }