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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3618>
This commit is contained in:
Carlos Garnacho 2025-01-28 11:48:17 +01:00 committed by Marge Bot
parent 9beacca329
commit e6e0ccdf27

View File

@ -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';