Don't mistake GObject.registerClass() for a constructor
Those slipped through when porting from Lang.Class to ES6 classes. Very indirectly spotted by eslint. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/388
This commit is contained in:
parent
43fb2b38b1
commit
cdd2803498
@ -8,7 +8,7 @@ const KEYBOARD_A11Y_SCHEMA = 'org.gnome.desktop.a11y.keyboard';
|
|||||||
const KEY_STICKY_KEYS_ENABLED = 'stickykeys-enable';
|
const KEY_STICKY_KEYS_ENABLED = 'stickykeys-enable';
|
||||||
const KEY_SLOW_KEYS_ENABLED = 'slowkeys-enable';
|
const KEY_SLOW_KEYS_ENABLED = 'slowkeys-enable';
|
||||||
|
|
||||||
var KbdA11yDialog = new GObject.registerClass(
|
var KbdA11yDialog = GObject.registerClass(
|
||||||
class KbdA11yDialog extends GObject.Object {
|
class KbdA11yDialog extends GObject.Object {
|
||||||
_init() {
|
_init() {
|
||||||
super._init();
|
super._init();
|
||||||
|
@ -54,7 +54,7 @@ const defaultKeysPost = [
|
|||||||
[{ width: 1.5, action: 'languageMenu', extraClassName: 'layout-key' }, { width: 1.5, action: 'hide', extraClassName: 'hide-key' }] ],
|
[{ width: 1.5, action: 'languageMenu', extraClassName: 'layout-key' }, { width: 1.5, action: 'hide', extraClassName: 'hide-key' }] ],
|
||||||
];
|
];
|
||||||
|
|
||||||
var KeyContainer = new GObject.registerClass(
|
var KeyContainer = GObject.registerClass(
|
||||||
class KeyContainer extends St.Widget {
|
class KeyContainer extends St.Widget {
|
||||||
_init() {
|
_init() {
|
||||||
let gridLayout = new Clutter.GridLayout({ orientation: Clutter.Orientation.HORIZONTAL,
|
let gridLayout = new Clutter.GridLayout({ orientation: Clutter.Orientation.HORIZONTAL,
|
||||||
|
@ -159,7 +159,7 @@ var URLHighlighter = class URLHighlighter {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var ScaleLayout = new GObject.registerClass(
|
var ScaleLayout = GObject.registerClass(
|
||||||
class ScaleLayout extends Clutter.BinLayout {
|
class ScaleLayout extends Clutter.BinLayout {
|
||||||
_init(params) {
|
_init(params) {
|
||||||
this._container = null;
|
this._container = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user