meson.build.o7QLX02
[roobuilder] / src / Builder4 / WindowLeftProps.bjs
index 31620d4..369cd6a 100644 (file)
          "    ",
          " //\tGtk.Allocation rect;",
          "\t//this.el.get_allocation(out rect);",
-         "",
-         "\t p.el.set_parent(this.el);",
+         "\tif (p.el.parent == null) {",
+         "\t\t p.el.set_parent(this.el);",
+         "\t }",
          "    //p.el.set_pointing_to(rect);",
          "\tp.el.show();",
          "\tp.el.set_position(Gtk.PositionType.BOTTOM);",
            "\t",
            "\tGLib.debug(\"Prssed %d\", (int)  this.el.get_current_button());",
            "\t//_this.deletemenu.el.set_parent(_this.view.el);",
-           "\t_this.deletemenu.el.set_parent(_this.main_window.el);",
+           "\tif (_this.deletemenu.el.parent == null) {",
+           "\t\t_this.deletemenu.el.set_parent(_this.main_window.el);",
+           "\t}",
            "\t",
            "\t",
            "\t ",
         "\t\tvar ll = (Gtk.Label)ca.get_first_child();",
         "\t\tvar cb = ca.get_next_sibling();",
         "\t\tvar b = cb.get_first_child();",
-        "\t\tvar e = (Gtk.Entry) b.get_first_child();",
+        "\t\tvar e = (Gtk.EditableLabel) b.get_first_child();",
         "\t\tvar l = (Gtk.Label) e.get_next_sibling();",
         "\t\tvar d = (Gtk.DropDown) l.get_next_sibling();",
         "\t\t",
         "\t\tGLib.debug(\"row key = %s\", ll.label);",
         "\t\tif (e.get_visible()) {",
         "\t\t\t_this.stop_editor();",
-        "\t\t\te.grab_focus_without_selecting();",
+        "\t\t\te.start_editing();",
+        "\t\t\t//GLib.Timeout.add_once(500, () => {",
+        "\t\t\t//\tvar st = (Gtk.Stack) e.get_first_child();",
+        "\t\t\t//\tvar ed = (Gtk.Entry) st.get_visible_child();",
+        "\t\t\t//\ted.grab_focus_without_selecting();",
+        "\t\t\t//});",
         "\t\t\treturn;",
         "\t\t}",
         "\t\tif (d.get_visible()) {",