mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
cleanup: Remove old compatibility code
Since gjs moved to mozjs60, return values of int8_t arrays can no longer be treated as strings. We originally made the conversion conditional to keep working with the (then) stable gjs release. That was two years ago and we require a more recent gjs nowadays, so there's no good reason for keeping the old code path. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1407
This commit is contained in:
parent
923d926345
commit
112b139a9e
5 changed files with 10 additions and 15 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
const { Atk, Clutter, GDesktopEnums, Gio,
|
||||
GLib, GObject, Gtk, Meta, Pango, Rsvg, St } = imports.gi;
|
||||
const ByteArray = imports.byteArray;
|
||||
const Signals = imports.signals;
|
||||
|
||||
const Main = imports.ui.main;
|
||||
|
|
@ -297,8 +298,7 @@ var PadDiagram = GObject.registerClass({
|
|||
_init(params) {
|
||||
let file = Gio.File.new_for_uri('resource:///org/gnome/shell/theme/pad-osd.css');
|
||||
let [success_, css] = file.load_contents(null);
|
||||
if (css instanceof Uint8Array)
|
||||
css = imports.byteArray.toString(css);
|
||||
css = ByteArray.toString(css);
|
||||
this._curEdited = null;
|
||||
this._prevEdited = null;
|
||||
this._css = css;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue