src/Builder4/MainWindow.bjs
authorAlan <alan@roojs.com>
Thu, 7 Jul 2022 08:12:22 +0000 (16:12 +0800)
committerAlan <alan@roojs.com>
Thu, 7 Jul 2022 08:12:22 +0000 (16:12 +0800)
src/Builder4/MainWindow.vala

src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala

index 8882b70..f820612 100644 (file)
@@ -44,6 +44,7 @@
          ],
          "bool always_show_image" : true,
          "bool use_popover" : false,
+         "id" : "",
          "items" : [
           {
            "$ xns" : "Gtk",
            "\t \tthis.mitems.add(m);",
            "\t }",
            "\t this.el.popup.show_all();",
-           "\t this.el.popup.check_resize();",
+           "\t this.el.popup.reposition();",
            "}",
            ""
           ]
index e5f3a81..dbabe71 100644 (file)
@@ -13,6 +13,7 @@ public class Xcls_MainWindow : Object
         return _MainWindow;
     }
     public Xcls_headerbar headerbar;
+    public Xcls_MenuButton4 MenuButton4;
     public Xcls_windownew windownew;
     public Xcls_open_projects_btn open_projects_btn;
     public Xcls_vbox vbox;
@@ -226,6 +227,7 @@ public class Xcls_MainWindow : Object
         public Xcls_MenuButton4(Xcls_MainWindow _owner )
         {
             _this = _owner;
+            _this.MenuButton4 = this;
             this.el = new Gtk.MenuButton();
 
             // my vars (dec)
@@ -277,7 +279,7 @@ public class Xcls_MainWindow : Object
                        this.mitems.add(m);
                 }
                 this.el.popup.show_all();
-                this.el.popup.check_resize();
+                this.el.popup.reposition();
             });
         }