src/Builder4/GtkView.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 23 Mar 2015 10:29:24 +0000 (18:29 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 23 Mar 2015 10:29:24 +0000 (18:29 +0800)
src/Builder4/GtkView.vala

src/Builder4/GtkView.bjs
src/Builder4/GtkView.vala

index f5a7cae..415d73a 100644 (file)
@@ -7,9 +7,6 @@
  "modOrder" : "",
  "items" : [
   {
-   "listeners" : {
-    "show" : "() => {\n    _this.compile_view.el.hide();\n\n}"
-   },
    "id" : "GtkView",
    "# Gtk.Widget lastObj" : "null",
    "| void createThumb" : "() {\n    \n    \n    if (this.file == null) {\n        return;\n    }\n    var filename = this.file.getIconFileName(false);\n    \n    var  win = this.el.get_parent_window();\n    var width = win.get_width();\n    var height = win.get_height();\n\n    Gdk.Pixbuf screenshot = Gdk.pixbuf_get_from_window(win, 0, 0, width, height); // this.el.position?\n\n    screenshot.save(filename,\"png\");\n    return;\n    \n    \n    \n    \n    \n     \n    \n    // should we hold until it's printed...\n    \n      \n\n    \n    \n\n\n    \n     \n}\n",
index 8750865..31d15ef 100644 (file)
@@ -37,12 +37,6 @@ public class Xcls_GtkView : Object
         var child_1 = new Xcls_compile_view( _this );
         child_1.ref();
         this.el.pack2 (  child_1.el , true,true );
-
-        // listeners 
-        this.el.show.connect( () => {
-            _this.compile_view.el.hide();
-        
-        });
     }
 
     // user defined functions