🎉 Add support for older GNOME versions

This commit is contained in:
Simon Schneegans
2021-12-20 20:11:39 +01:00
parent 570a0146b6
commit 42ccf20704
5 changed files with 360 additions and 2 deletions
+7
View File
@@ -13,6 +13,8 @@
'use strict';
const {Gtk} = imports.gi;
const ExtensionUtils = imports.misc.extensionUtils;
const Me = imports.misc.extensionUtils.getCurrentExtension();
@@ -35,3 +37,8 @@ function debug(message) {
log('[' + stack[0].slice(extensionRoot) + '] ' + message);
}
// This method simply returns true if we are currently using GTK4.
function gtk4() {
return Gtk.get_major_version() == 4;
}