From: Alan Knowles Date: Tue, 26 Mar 2024 16:03:40 +0000 (+0800) Subject: src/Builder4/Editor.bjs X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=8d81739d674a871056d799761fc3b67d8d4dddec;p=roobuilder src/Builder4/Editor.bjs src/Builder4/Editor.vala --- diff --git a/src/Builder4/Editor.bjs b/src/Builder4/Editor.bjs index ff3718236..10184c9c5 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -68,6 +68,15 @@ "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) {", diff --git a/src/Builder4/Editor.vala b/src/Builder4/Editor.vala index d30015a67..3787edab9 100644 --- a/src/Builder4/Editor.vala +++ b/src/Builder4/Editor.vala @@ -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