BrowserWindow.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 6 May 2016 04:38:26 +0000 (12:38 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 6 May 2016 04:38:26 +0000 (12:38 +0800)
BrowserWindow.vala

BrowserWindow.bjs
BrowserWindow.vala

index 16d413b..b18b5c5 100644 (file)
@@ -10,7 +10,7 @@
   {
    "listeners" : {
     "destroy" : "() => {\n    Gtk.main_quit();\n}",
-    "show" : "() => {\n\t\n\tprint(\"resizing window\\n\");\n\tthis.el.resize(1200,500);\n\tprint(\"loading url\\n\");\n\tthis.view.el.load_uri(webkitpdf.opt_url);\n\t\n\t// if we have not finished in 25 seconds\n\t// call printit...\n\t  GLib.Timeout.add_seconds(25, () => { \n\t\t\t_this.view.printit();\n\t\t\t});\n\t\n\n}"
+    "show" : "() => {\n\t\n\tprint(\"resizing window\\n\");\n\tthis.el.resize(1200,500);\n\tprint(\"loading url\\n\");\n\tthis.view.el.load_uri(webkitpdf.opt_url);\n\t\n\t// if we have not finished in 25 seconds\n\t// call printit...\n\t  GLib.Timeout.add_seconds(25, () => { \n\t\t\t_this.view.printit();\n\t\t\treturn true;\n\t});\n\t\n\n}"
    },
    "xtype" : "Window",
    "$ xns" : "Gtk",
index b8004ec..750ece5 100644 (file)
@@ -45,7 +45,8 @@ public class BrowserWindow : Object
                // call printit...
                  GLib.Timeout.add_seconds(25, () => { 
                                _this.view.printit();
-                               });
+                               return true;
+               });
                
         
         });