Builder4/WindowRooView.bjs.NY43LX
authorAlan Knowles <alan@roojs.com>
Tue, 16 Sep 2014 10:55:37 +0000 (18:55 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 16 Sep 2014 10:55:37 +0000 (18:55 +0800)
Builder4/WindowRooView.bjs
Builder4/WindowRooView.js.7C63LX
Builder4/WindowRooView.js
Builder4/WindowRooView.vala.TUA4LX
Builder4/WindowRooView.vala

Builder4/WindowRooView.bjs
Builder4/WindowRooView.js
Builder4/WindowRooView.vala

index f4af574..8177467 100644 (file)
@@ -71,7 +71,7 @@
                                 {
                                     "listeners" : {
                                         "script_dialog" : " (dialog) => {\n     var msg = dialog.get_message();\n     if (msg.length < 4) {\n        return false;\n     }\n     if (msg.substring(0,4) != \"IPC:\") {\n         return false;\n     }\n     var ar = msg.split(\":\", 3);\n    if (ar.length < 3) {\n        return false;\n    }\n    switch(ar[1]) {\n        case \"SAVEHTML\":\n            _this.file.saveHTML(ar[2]);\n            return true;\n        default:\n            return false;\n    }\n    \n}",
-                                        "show" : "  ( ) => {\n    this.inspector = this.el.get_inspector();\n    this.inspector.ref();\n    this.inspector.open_window.connect(() => {\n         this.inspector = this.el.get_inspector();\n        print(\"inspector attach\\n\");\n        var wv = this.inspector.get_web_view();\n        if (wv != null) {\n            print(\"got inspector web view\\n\");\n            _this.inspectorcontainer.el.add(wv);\n            wv.show();\n        } else {\n            print(\"no web view yet\\n\");\n        }\n        return true;\n       \n    });\n   this.inspector.closed.connect(() => {\n        \n        this.inspector.show();\n       \n    }); \n    \n     this.inspector.closed.connect(() => {\n        \n        this.inspector.show();\n       \n    }); \n    \n    this.inspector.show();\n}",
+                                        "show" : "  ( ) => {\n    this.inspector = this.el.get_inspector();\n    this.inspector.ref();\n    \n    \n    \n    this.inspector.open_window.connect(() => {\n         this.inspector = this.el.get_inspector();\n        print(\"inspector attach\\n\");\n        var wv = this.inspector.get_web_view();\n        if (wv != null) {\n            print(\"got inspector web view\\n\");\n            _this.inspectorcontainer.el.add(wv);\n            wv.show();\n        } else {\n            print(\"no web view yet\\n\");\n        }\n        return true;\n       \n    });\n    this.inspector.closed.connect(() => {\n        \n        this.inspector.show();\n       \n    }); \n    \n     this.inspector.closed.connect(() => {\n        \n        this.inspector.show();\n       \n    }); \n    \n    this.inspector.show();\n}",
                                         "drag_drop" : "  ( ctx, x, y,time, ud) => {\n    return false;\n    /*\n\tprint(\"TARGET: drag-drop\");\n        var is_valid_drop_site = true;\n        \n         \n        Gtk.drag_get_data\n        (\n                w,         // will receive 'drag-data-received' signal \n                ctx,        /* represents the current state of the DnD \n                this.get('/Window').atoms[\"STRING\"],    /* the target type we want \n                time            /* time stamp \n        );\n                        \n                        \n                        /* No target offered by source => error \n                       \n\n\treturn  is_valid_drop_site;\n\t*/\n}"
                                     },
                                     "# string renderedData" : "\"\"",
index 5669167..4acbf8a 100644 (file)
@@ -330,6 +330,9 @@ WindowRooView=new XObject({
                                show : ( ) => {
                                       this.inspector = this.el.get_inspector();
                                       this.inspector.ref();
+                                      
+                                      
+                                      
                                       this.inspector.open_window.connect(() => {
                                            this.inspector = this.el.get_inspector();
                                           print("inspector attach\n");
@@ -344,7 +347,7 @@ WindowRooView=new XObject({
                                           return true;
                                          
                                       });
-                                     this.inspector.closed.connect(() => {
+                                      this.inspector.closed.connect(() => {
                                           
                                           this.inspector.show();
                                          
index c89d7c8..d5e7f96 100644 (file)
@@ -393,6 +393,9 @@ public class Xcls_WindowRooView : Object
             this.el.show.connect( ( ) => {
                 this.inspector = this.el.get_inspector();
                 this.inspector.ref();
+                
+                
+                
                 this.inspector.open_window.connect(() => {
                      this.inspector = this.el.get_inspector();
                     print("inspector attach\n");
@@ -407,7 +410,7 @@ public class Xcls_WindowRooView : Object
                     return true;
                    
                 });
-               this.inspector.closed.connect(() => {
+                this.inspector.closed.connect(() => {
                     
                     this.inspector.show();