BrowserWindow.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 11 Nov 2015 07:17:06 +0000 (15:17 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 11 Nov 2015 07:17:06 +0000 (15:17 +0800)
BrowserWindow.vala

BrowserWindow.bjs
BrowserWindow.vala

index 7251047..e00c9be 100644 (file)
@@ -9,6 +9,7 @@
  "items" : [
   {
    "listeners" : {
+    "destroy" : "() => {\n    Gtk.main_quit();\n}",
     "show" : "{} => {\n\tthis.el.resize(1200,500);\n\t\n\n}"
    },
    "xtype" : "Window",
index b44b202..93d5b11 100644 (file)
@@ -29,6 +29,9 @@ public class BrowserWindow : Object
         this.el.add (  child_0.el  );
 
         //listeners
+        this.el.destroy.connect( () => {
+            Gtk.main_quit();
+        });
         this.el.show.connect( {} => {
                this.el.resize(1200,500);