"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\treturn true;\n\t});\n\t\n\n}"
},
+ "id" : "window",
"xtype" : "Window",
"$ xns" : "Gtk",
"Gtk.WindowType type" : "Gtk.WindowType.TOPLEVEL",
-static BrowserWindow _BrowserWindow;
+static Xcls_window _window;
-public class BrowserWindow : Object
+public class Xcls_window : Object
{
public Gtk.Window el;
- private BrowserWindow _this;
+ private Xcls_window _this;
- public static BrowserWindow singleton()
+ public static Xcls_window singleton()
{
- if (_BrowserWindow == null) {
- _BrowserWindow= new BrowserWindow();
+ if (_window == null) {
+ _window= new Xcls_window();
}
- return _BrowserWindow;
+ return _window;
}
public Xcls_scrolled_window scrolled_window;
public Xcls_view view;
// my vars (def)
// ctor
- public BrowserWindow()
+ public Xcls_window()
{
_this = this;
this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
public class Xcls_scrolled_window : Object
{
public Gtk.ScrolledWindow el;
- private BrowserWindow _this;
+ private Xcls_window _this;
// my vars (def)
// ctor
- public Xcls_scrolled_window(BrowserWindow _owner )
+ public Xcls_scrolled_window(Xcls_window _owner )
{
_this = _owner;
_this.scrolled_window = this;
public class Xcls_view : Object
{
public WebKit.WebView el;
- private BrowserWindow _this;
+ private Xcls_window _this;
// my vars (def)
public bool print_started;
// ctor
- public Xcls_view(BrowserWindow _owner )
+ public Xcls_view(Xcls_window _owner )
{
_this = _owner;
_this.view = this;