dbusServices/screencast: Use GTK4

The separate screencast service has some minimal GTK usage, which
we can trivially move to GTK4.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1591>
This commit is contained in:
Florian Müllner 2021-01-20 02:48:24 +01:00
parent 62baf524af
commit 2e9a2e68b7

View File

@ -1,7 +1,7 @@
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
/* exported ScreencastService */ /* exported ScreencastService */
imports.gi.versions.Gtk = '3.0'; imports.gi.versions.Gtk = '4.0';
const { Gio, GLib, Gst, Gtk } = imports.gi; const { Gio, GLib, Gst, Gtk } = imports.gi;
@ -246,7 +246,7 @@ var ScreencastService = class extends ServiceImplementation {
super(ScreencastIface, '/org/gnome/Shell/Screencast'); super(ScreencastIface, '/org/gnome/Shell/Screencast');
Gst.init(null); Gst.init(null);
Gtk.init(null); Gtk.init();
this._recorders = new Map(); this._recorders = new Map();
this._senders = new Map(); this._senders = new Map();