From e6e0ccdf2714aadfed5c20c6b574fc3bfdbee6e3 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 28 Jan 2025 11:48:17 +0100 Subject: [PATCH] ibusCandidatePopup: Fix live orientation changes based on IBus info This is rare, and was missed in the replacements towards the new 'orientation' property. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8177 Fixes: b75b4abaf ("js: Set BoxLayout orientation") Part-of: --- js/ui/ibusCandidatePopup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/ibusCandidatePopup.js b/js/ui/ibusCandidatePopup.js index 89494ba61..47926a292 100644 --- a/js/ui/ibusCandidatePopup.js +++ b/js/ui/ibusCandidatePopup.js @@ -100,13 +100,13 @@ const CandidateArea = GObject.registerClass({ this._orientation = orientation; if (this._orientation === IBus.Orientation.HORIZONTAL) { - this.vertical = false; + this.orientation = Clutter.Orientation.HORIZONTAL; this.remove_style_class_name('vertical'); this.add_style_class_name('horizontal'); this._previousButton.icon_name = 'go-previous-symbolic'; this._nextButton.icon_name = 'go-next-symbolic'; } else { // VERTICAL || SYSTEM - this.vertical = true; + this.orientation = Clutter.Orientation.VERTICAL; this.add_style_class_name('vertical'); this.remove_style_class_name('horizontal'); this._previousButton.icon_name = 'go-up-symbolic';