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:
parent
9beacca329
commit
e6e0ccdf27
@ -100,13 +100,13 @@ const CandidateArea = GObject.registerClass({
|
|||||||
this._orientation = orientation;
|
this._orientation = orientation;
|
||||||
|
|
||||||
if (this._orientation === IBus.Orientation.HORIZONTAL) {
|
if (this._orientation === IBus.Orientation.HORIZONTAL) {
|
||||||
this.vertical = false;
|
this.orientation = Clutter.Orientation.HORIZONTAL;
|
||||||
this.remove_style_class_name('vertical');
|
this.remove_style_class_name('vertical');
|
||||||
this.add_style_class_name('horizontal');
|
this.add_style_class_name('horizontal');
|
||||||
this._previousButton.icon_name = 'go-previous-symbolic';
|
this._previousButton.icon_name = 'go-previous-symbolic';
|
||||||
this._nextButton.icon_name = 'go-next-symbolic';
|
this._nextButton.icon_name = 'go-next-symbolic';
|
||||||
} else { // VERTICAL || SYSTEM
|
} else { // VERTICAL || SYSTEM
|
||||||
this.vertical = true;
|
this.orientation = Clutter.Orientation.VERTICAL;
|
||||||
this.add_style_class_name('vertical');
|
this.add_style_class_name('vertical');
|
||||||
this.remove_style_class_name('horizontal');
|
this.remove_style_class_name('horizontal');
|
||||||
this._previousButton.icon_name = 'go-up-symbolic';
|
this._previousButton.icon_name = 'go-up-symbolic';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user