sync wip_alan_T7368_auto_show_menu_items origin/wip_alan_T7368_auto_show_menu_items
authorAlan <alan@roojs.com>
Wed, 31 Aug 2022 08:37:29 +0000 (16:37 +0800)
committerAlan <alan@roojs.com>
Wed, 31 Aug 2022 08:37:29 +0000 (16:37 +0800)
src/Builder4/WindowLeftTree.bjs
src/Builder4/WindowLeftTree.vala
src/Builder4/WindowRooView.bjs
src/Builder4/WindowRooView.vala
src/Builder4/WindowState.vala

index 7ff79cc..4769803 100644 (file)
         "cursor_changed" : [
          " ( ) => {",
          "    print(\"LEFT TREE Cursor Changed\\n\");",
-         "\tif (!this.button_is_pressed && !this.key_is_pressed) {",
+         "\t//if (!this.button_is_pressed && !this.key_is_pressed) {",
          "\t\t// then event was started by some other action",
          "\t\t// which should manually trigger all the events..",
-         "\t\tprint(\"SKIPPING select - no button or key pressed\\n\");",
-         "\t\treturn;",
-         "\t}",
+         "\t//\tprint(\"SKIPPING select - no button or key pressed\\n\");",
+         "\t//\treturn;",
+         "\t//}",
          "",
          "",
          "     if (this.blockChanges) { // probably not needed.. ",
index f7f5b34..ad39952 100644 (file)
@@ -272,12 +272,12 @@ public class Xcls_WindowLeftTree : Object
             });
             this.el.cursor_changed.connect( ( ) => {
                 print("LEFT TREE Cursor Changed\n");
-               if (!this.button_is_pressed && !this.key_is_pressed) {
+               //if (!this.button_is_pressed && !this.key_is_pressed) {
                        // then event was started by some other action
                        // which should manually trigger all the events..
-                       print("SKIPPING select - no button or key pressed\n");
-                       return;
-               }
+               //      print("SKIPPING select - no button or key pressed\n");
+               //      return;
+               //}
             
             
                  if (this.blockChanges) { // probably not needed.. 
index e02260d..e066de4 100644 (file)
             "    ",
             "    this.node_selected = sel;",
             "    ",
-            "    this.updateGreySelection(scroll);",
+            "   // this.updateGreySelection(scroll);",
             "    ",
             "    ",
             "    ",
             "            }",
             "            ltree.view.setCursor(tp, \"editor\");",
             "           // ltree.view.el.set_cursor(new Gtk.TreePath.from_string(tp), null, false); ",
-            "           this.nodeSelected(node,false);",
+            "           //this.nodeSelected(node,false);",
             "            ",
             "            // scrolling is disabled... as node selection calls scroll 10ms after it changes.",
             "             ",
index 1027b68..dbbf4b9 100644 (file)
@@ -1345,7 +1345,7 @@ public class Xcls_WindowRooView : Object
                     }
                     ltree.view.setCursor(tp, "editor");
                    // ltree.view.el.set_cursor(new Gtk.TreePath.from_string(tp), null, false); 
-                   this.nodeSelected(node,false);
+                   //this.nodeSelected(node,false);
                     
                     // scrolling is disabled... as node selection calls scroll 10ms after it changes.
                      
@@ -1367,7 +1367,7 @@ public class Xcls_WindowRooView : Object
             
             this.node_selected = sel;
             
-            this.updateGreySelection(scroll);
+           // this.updateGreySelection(scroll);
             
             
             
index 16ad572..4629069 100644 (file)
@@ -127,9 +127,9 @@ public class WindowState : Object
                });
                // node selected -- only by clicking?
                this.left_tree.node_selected.connect((sel, source) => {
-                       if (source == "editor") {
-                               return;
-                       }
+                       //if (source == "editor") {
+                       //      return;
+                       //}
                        if (this.file.xtype == "Roo") { 
                                this.window_rooview.sourceview.nodeSelected(sel,true); // foce scroll.
                        } else {