Review of "GJS OSK" version 56

Details Page Preview

A new Onscreen Keyboard built using GNOME JS

Extension Homepage
https://github.com/Vishram1123/gjs-osk

No comments.

Diff Against

Files

Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.

Shexli (experimental) error 2 warning 5

Shexli found 7 issues that may need reviewer attention.

EGO-X-003 warning

extensions should not call run_dispose in extension code

Extension code should not call `run_dispose()`.

GObject.Object.run_dispose

  • extension.js:981
    this.inputDevice.run_dispose()

EGO-I-001 error

deprecated modules must not be imported

Deprecated module `ByteArray` is imported.

Do not use deprecated modules

  • extension.js:20
    ByteArray = imports.byteArray

EGO-P-004 error

GSettings schema XML filename must match schema id

GSettings schema filename must match `<schema-id>.gschema.xml`.

GSettings Schemas

  • schemas/org.gnome.shell.extensions.gjsosk.gschema.xml
    id='org.gnome.shell.extensions.gjsosk.indicator' path='/org/gnome/shell/extensions/gjsosk/indicator/'

EGO-L-002 warning

objects created by extension should be destroyed in disable()

Objects assigned in `enable()` are missing matching `.destroy()` calls in `disable()` or its helper methods.

Destroy all objects

  • extension.js:718
    this.nonDragBlocker = new Clutter.Actor()
  • extension.js:1354
            this.suggestionBox = new St.BoxLayout({
                x_expand: true,
                y_expand: true,
                visible: false
            })
  • extension.js:1642
    keyBtn
  • extension.js:1637
    keyBtn

EGO-L-005 warning

owned object references should be released in disable()

Owned references that are cleaned up in `disable()` should also be released with `null` or `undefined`.

Destroy all objects

  • extension.js:718
    this.nonDragBlocker = new Clutter.Actor()
  • extension.js:1354
            this.suggestionBox = new St.BoxLayout({
                x_expand: true,
                y_expand: true,
                visible: false
            })

EGO-L-003 warning

signals connected by extension should be disconnected in disable()

Signals assigned in `enable()` are missing matching disconnect calls in `disable()` or its helper methods.

Disconnect all signals

  • extension.js:534
                this._indicator.connect("button-press-event", () => {
                    this._toggleKeyboard();
                    return Clutter.EVENT_STOP;
                })
  • extension.js:592
                    this._indicator.connect("button-press-event", () => {
                        this._toggleKeyboard();
                        return Clutter.EVENT_STOP;
                    })
  • extension.js:538
                this._indicator.connect("touch-event", (_actor, event) => {
                    if (event.type() == Clutter.EventType.TOUCH_END) {
                        this._toggleKeyboard();
                        return Clutter.EVENT_STOP;
                    }
                    return Clutter.EVENT_PROPAGATE;
        
  • extension.js:596
                    this._indicator.connect("touch-event", (_actor, event) => {
                        if (event.type() == Clutter.EventType.TOUCH_END) {
                            this._toggleKeyboard();
                            return Clutter.EVENT_STOP;
                        }
                        return Clutt
  • extension.js:918
                this._imStageCaptureId = global.stage.connect('captured-event', (_s, ev) => {
                    if (pendingResetId) {
                        const t = ev.type();
                        if (t === Clutter.EventType.BUTTON_PRESS || t === Clutter.EventType.TOUCH_BEGIN) {
                            cons
  • extension.js:777
                bottomDragAction.connect('activated', () => {
                    this.open(true);
                    this.openedFromButton = true;
                    this.closedFromButton = false;
                    this.gestureInProgress = false;
                })
  • extension.js:789
                bottomDragAction.connect('gesture-cancel', () => {
                    if (this.gestureInProgress) {
                        this.close()
                        this.openedFromButton = false;
                        this.closedFromButton = true;
                    }
                    this.gestureInProgress 
  • extension.js:783
                bottomDragAction.connect('progress', (_action, progress) => {
                    if (!this.gestureInProgress)
                        this.open(false)
                    this.setOpenState(Math.min(Math.max(0, (progress / (side % 2 == 0 ? this.box.height : this.box.width)) * 100), 100))
               
  • extension.js:1455
            btn.connect("button-press-event", () => {
                action();
                return Clutter.EVENT_STOP;
            })
  • extension.js:1459
    btn.connect("button-release-event", () => Clutter.EVENT_STOP)
  • extension.js:1460
            btn.connect("touch-event", (_actor, event) => {
                const type = event.type();
                if (type == Clutter.EventType.TOUCH_BEGIN) {
                    action();
                    return Clutter.EVENT_STOP;
                }
                if (type == Clutter.EventType.TOUCH_END || type == Cl
  • extension.js:767
            this.edgeStrip.connect("touch-event", (actor, event) => {
                this.modalEdgeSwipe(event);
                return Clutter.EVENT_STOP;
            })
  • extension.js:1988
                item.connect("button-press-event", () => {
                    pressEv("mouse");
                    return Clutter.EVENT_STOP;
                })
  • extension.js:1992
                item.connect("button-release-event", () => {
                    releaseEv();
                    return Clutter.EVENT_STOP;
                })
  • extension.js:1862
                item.connect("destroy", () => {
                    if (item.button_pressed !== null) {
                        clearTimeout(item.button_pressed)
                        item.button_pressed = null
                    }
                    if (item.button_repeat !== null) {
                        clearInterval(
  • extension.js:1996
                item.connect("touch-event", (_actor, event) => {
                    const type = event.type();
                    if (type == Clutter.EventType.TOUCH_BEGIN) {
                        pressEv("touch");
                        return Clutter.EVENT_STOP;
                    } else if (type == Clutter.EventTy

EGO-L-004 warning

main loop sources should be removed in disable()

Main loop sources assigned in `enable()` are missing matching removals in `disable()` or its helper methods.

Remove main loop sources

  • extension.js:324
    this.waitRefresh = setTimeout(refresh, 1000)

All Versions

Previous Reviews on this Version

JustPerfection rejected
Same issues as previous version. also avoid sending packages with old GNOME Shell support since not many users not using them.
Vishram1123 posted a review
Sorry, I just kept support for it because I update both branches of my extension (for modern and for older) at once; should I drop support for 44 and below?