src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 26 Mar 2024 16:03:40 +0000 (00:03 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 26 Mar 2024 16:03:40 +0000 (00:03 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index ff37182..10184c9 100644 (file)
            "id" : "helper",
            "int margin_end" : 4,
            "int margin_start" : 4,
+           "listeners" : {
+            "query_tooltip" : [
+             "(x, y, keyboard_tooltip, tooltip) => {",
+             "",
+             "\treturn bool;",
+             "}",
+             ""
+            ]
+           },
            "xtype" : "Label",
            "| void setHelp" : [
             "(Lsp.Hover? help) {",
index d30015a..3787eda 100644 (file)
@@ -549,6 +549,12 @@ public class Editor : Object
                        this.el.justify = Gtk.Justification.LEFT;
                        this.el.hexpand = true;
                        this.el.xalign = 0f;
+
+                       //listeners
+                       this.el.query_tooltip.connect( (x, y, keyboard_tooltip, tooltip) => {
+                       
+                               return bool;
+                       });
                }
 
                // user defined functions