You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The search:
So when I looked at the code, I found this:
// Compatibility for GNOME 48+ where 'vertical' was deprecated in favor of 'orientation'
export function setWidgetOrientation(
widget: { vertical?: boolean; orientation?: Clutter.Orientation },
vertical: boolean,
) {
if (widget.orientation) {
widget.orientation = vertical
? Clutter.Orientation.VERTICAL
: Clutter.Orientation.HORIZONTAL;
} else {
widget.vertical = vertical;
}
}
At src/utils/ui.ts
The possible problem:
It seems that with Gnome 48 it always results in the "else" clause being executed.
So with this condition, the value could be 'negative' until 'orientation' is existing.
Hey thank you for sharing this! The official guide to port extensions to GNOME 48 says that the actual removal of the orientation will start in future GNOME versions, but with 48 the orientation will still exist! Do you know if it is better to already switch to the orientation?
Description:
As I boot up the system and look at the journals, I notice this report:
The search:
So when I looked at the code, I found this:
At src/utils/ui.ts
The possible problem:
It seems that with Gnome 48 it always results in the "else" clause being executed.
So with this condition, the value could be 'negative' until 'orientation' is existing.
My fix:
I used the "in" operation instead:
Also, from my quick look on the web, the deprecation starts at Gnome 46, not 48. Perhaps this could be corrected in the comments. ;)
Information:
The text was updated successfully, but these errors were encountered: