Can't use Gtk.Window.propagate_key_event(), etc.
System information
What is your operating system and version? Arch Linux
What is your version of GJS? 1.64.2
Bug information
Steps to reproduce
imports.gi.versions.Gtk = '3.0'
const { Gtk } = imports.gi
Gtk.init(null)
const win = new Gtk.Window()
win.connect('key-press-event', (win, event) => {
win.propagate_key_event(event)
})
win.show_all()
Gtk.main()
Then press any key.
Also happens with Gtk.Window.activate_key()
and Gtk.bindings_activate_event()
.
Current behaviour
(gjs:4487): Gjs-WARNING **: 11:44:27.236: JS ERROR: TypeError: Object 0x14e7de388e50 is not a subclass of GObject_Boxed, it's a GObject_Union
Expected behaviour
Should be able to pass the event without errors.