From dc1aec5673183998128a1ce6251a39d16b0c8194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 8 Jul 2021 20:42:55 +0200 Subject: [PATCH] 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: --- js/ui/overviewControls.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 88726573d..c15316169 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -112,7 +112,8 @@ class ControlsManagerLayout extends Clutter.BoxLayout { vfunc_set_container(container) { this._container = container; - this.hookup_style(container); + if (container) + this.hookup_style(container); } vfunc_get_preferred_width(_container, _forHeight) {