nick-shmyrev / improved-osk-gnome-ext

Improved On Screen Keyboard for Gnome Shell
https://extensions.gnome.org/extension/4413/improved-osk/
94 stars 30 forks source link

Remove Gnome 38 specific code #40

Closed yfreund closed 1 year ago

yfreund commented 1 year ago

Since support for older versions of Gnome has been dropped this if condition is no longer needed. The need for the else condition has also been deprecated (see https://gjs-docs.gnome.org/gtk40/gtk.widget#method-show).

yfreund commented 1 year ago

For clarification - the reason why the else condition is also not needed here is because we're already setting visible: true on this object, which suffices for most versions of Gtk4 and is the only viable way of doing that in Gtk >= 4.10 .