node-gir icon indicating copy to clipboard operation
node-gir copied to clipboard

Core dump when error is thrown from signal handler

Open romgrk opened this issue 7 years ago • 0 comments

/*
 * gir-throw.js
 */

const gi = require('node-gir')
const Gtk = gi.Gtk

  // main program window
const window = new Gtk.Window({
  type : Gtk.WindowType.TOPLEVEL
})

const urlBar = new Gtk.Entry()
urlBar.connect('key-press-event', (...args) => {
  throw new Error('test')
})

window.setDefaultSize(100, 30)
window.connect('show', () => {
  Gtk.main()
})
window.connect('destroy', () => Gtk.mainQuit())
window.connect('delete-event', () => false)
window.add(urlBar)
window.showAll()

See https://github.com/romgrk/node-gtk/issues/45

romgrk avatar Jul 16 '18 15:07 romgrk