overviewControls: Fix warning on shutdown

ClutterActor unsets its layout manager's :container property during
dispose, so the corresponding vfunc should handle being passed NULL.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1909>
This commit is contained in:
Florian Müllner 2021-07-08 20:42:55 +02:00 committed by Marge Bot
parent 30e49cc3ca
commit dc1aec5673

View File

@ -112,7 +112,8 @@ class ControlsManagerLayout extends Clutter.BoxLayout {
vfunc_set_container(container) { vfunc_set_container(container) {
this._container = container; this._container = container;
this.hookup_style(container); if (container)
this.hookup_style(container);
} }
vfunc_get_preferred_width(_container, _forHeight) { vfunc_get_preferred_width(_container, _forHeight) {