Re: GJS BOF: Day 1
- From: Andrea Giammarchi <andrea giammarchi gmail com>
- To: Philip Chimento <philip chimento gmail com>
- Cc: Michael Catanzaro <mcatanzaro gnome org>, Philip Withnall <philip tecnocode co uk>, Niv Sardi <x xaiki net>, javascript-list <javascript-list gnome org>
- Subject: Re: GJS BOF: Day 1
- Date: Wed, 17 Aug 2016 16:09:56 +0100
I've tried to answer but I've got a filter notification due 40K+ chars (I guess I shouldn't have included the original message) so I'll reply again.
About node abstracting:
Already working for Chakra:
There is a project from Mozilla too:
About Babel, jsgtk already uses babel standalone to bring ES6 features in moz24.
If you want to play with it, install it via:
About classes, jsgtk already supports them out of the box.
Example:
```js
#!/usr/bin/env jsgtk
const Gtk = require('Gtk');
Gtk.init(null);
class HewlloWorld extends Gtk.Window {
  constructor() {
    super({
      title: 'jsgtk',
      type: Gtk.WindowType.TOPLEVEL,
      windowPosition: Gtk.WindowPosition.CENTER
    });
    this.once('show', () => {
      this.setKeepAbove(true);
      Gtk.main();
    })
    .on('destroy', Gtk.mainQuit)
    .add(new Gtk.Label({label: 'Hello jsGtk+'}));
    this.setDefaultSize(200, 80);
    this.showAll();
  }
}
new HewlloWorld();
```
Best Regards
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]