diff --git a/js/dbusServices/extensions/main.js b/js/dbusServices/extensions/main.js index b13e52e3c..306fe36f5 100644 --- a/js/dbusServices/extensions/main.js +++ b/js/dbusServices/extensions/main.js @@ -1,5 +1,6 @@ /* exported main */ +imports.gi.versions.Adw = '1'; imports.gi.versions.Gdk = '4.0'; imports.gi.versions.Gtk = '4.0'; diff --git a/js/dbusServices/screencast/screencastService.js b/js/dbusServices/screencast/screencastService.js index e91d0b60c..1fdf5c766 100644 --- a/js/dbusServices/screencast/screencastService.js +++ b/js/dbusServices/screencast/screencastService.js @@ -1,6 +1,7 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- /* exported ScreencastService */ +imports.gi.versions.Gst = '1.0'; imports.gi.versions.Gtk = '4.0'; const { Gio, GLib, Gst, Gtk } = imports.gi; diff --git a/js/portalHelper/main.js b/js/portalHelper/main.js index bc9958e59..94f4b8ac6 100644 --- a/js/portalHelper/main.js +++ b/js/portalHelper/main.js @@ -1,5 +1,7 @@ /* exported main */ +imports.gi.versions.Pango = '1.0'; imports.gi.versions.Gtk = '3.0'; +imports.gi.versions.WebKit2 = '4.0'; const Format = imports.format; const Gettext = imports.gettext; diff --git a/js/ui/environment.js b/js/ui/environment.js index 7bd848f1a..affc2b62b 100644 --- a/js/ui/environment.js +++ b/js/ui/environment.js @@ -3,16 +3,35 @@ const Config = imports.misc.config; +imports.gi.versions.AccountsService = '1.0'; +imports.gi.versions.Atk = '1.0'; +imports.gi.versions.Atspi = '2.0'; imports.gi.versions.Clutter = Config.LIBMUTTER_API_VERSION; +imports.gi.versions.Cogl = Config.LIBMUTTER_API_VERSION; +imports.gi.versions.Gcr = '3'; +imports.gi.versions.Gdk = '3.0'; +imports.gi.versions.Gdm = '1.0'; +imports.gi.versions.Geoclue = '2.0'; imports.gi.versions.Gio = '2.0'; +imports.gi.versions.GDesktopEnums = '3.0'; imports.gi.versions.GdkPixbuf = '2.0'; imports.gi.versions.GnomeBluetooth = '3.0'; imports.gi.versions.GnomeDesktop = '3.0'; +imports.gi.versions.Graphene = '1.0'; imports.gi.versions.Gtk = '3.0'; imports.gi.versions.GWeather = '4.0'; +imports.gi.versions.IBus = '1.0'; +imports.gi.versions.Malcontent = '0'; +imports.gi.versions.NM = '1.0'; +imports.gi.versions.NMA = '1.0'; +imports.gi.versions.Pango = '1.0'; +imports.gi.versions.Polkit = '1.0'; +imports.gi.versions.PolkitAgent = '1.0'; +imports.gi.versions.Rsvg = '2.0'; imports.gi.versions.Soup = '3.0'; imports.gi.versions.TelepathyGLib = '0.12'; imports.gi.versions.TelepathyLogger = '0.2'; +imports.gi.versions.UPowerGlib = '1.0'; try { if (Config.HAVE_SOUP2) diff --git a/subprojects/extensions-app/js/main.js b/subprojects/extensions-app/js/main.js index 361477ddd..56e10769f 100644 --- a/subprojects/extensions-app/js/main.js +++ b/subprojects/extensions-app/js/main.js @@ -1,4 +1,5 @@ /* exported main */ +imports.gi.versions.Adw = '1'; imports.gi.versions.Gtk = '4.0'; const Gettext = imports.gettext;