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:
parent
62baf524af
commit
2e9a2e68b7
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user