src/Builder4/CodeInfo.bjs
authorAlan Knowles <alan@roojs.com>
Sat, 16 Mar 2024 08:05:35 +0000 (16:05 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 16 Mar 2024 08:05:35 +0000 (16:05 +0800)
src/Builder4/CodeInfo.vala

src/Builder4/CodeInfo.bjs
src/Builder4/CodeInfo.vala

index 5be9d86..850db75 100644 (file)
    ],
    "xtype" : "Popover",
    "| void show" : [
-    "() {",
-    "",
+    "(Gtk.Widget onbtn) {",
+    "   this.el.set_parent(onbtn);",
+    "\tthis.el.popup();",
     "}"
    ]
   }
index 5efcb96..86a061f 100644 (file)
@@ -30,8 +30,9 @@ public class CodeInfo : Object
        }
 
        // user defined functions
-       public void show () {
-       
+       public void show (Gtk.Widget onbtn) {
+          this.el.set_parent(onbtn);
+               this.el.popup();
        }
        public class Xcls_Paned1 : Object
        {