♻️ Introduce utils.getGTKString()

This commit is contained in:
Simon Schneegans
2022-01-10 05:53:09 +01:00
parent 67186eb37d
commit 63515a3d8d
4 changed files with 10 additions and 12 deletions
+4
View File
@@ -46,6 +46,10 @@ function isGTK4() {
return Gtk.get_major_version() == 4;
}
function getGTKString() {
return isGTK4() ? 'gtk4' : 'gtk3';
}
function isInShellProcess() {
return window.global && global.stage;
}