From: Alan Knowles Date: Tue, 26 Mar 2024 16:19:14 +0000 (+0800) Subject: src/Builder4/Editor.bjs X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=f64a808583b2b92254eb11dcc2c8ec7ed26b9963;p=roobuilder src/Builder4/Editor.bjs src/Builder4/Editor.vala --- diff --git a/src/Builder4/Editor.bjs b/src/Builder4/Editor.bjs index 10184c9c5..f56913cd4 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -71,8 +71,11 @@ "listeners" : { "query_tooltip" : [ "(x, y, keyboard_tooltip, tooltip) => {", + "\tvar lbl = new Gtk.Label(this.el.tooltip_markup);", + "\tlbl.width_request = 700;", + "\ttooltip.set_custom(lbl);", "", - "\treturn bool;", + "\treturn true;", "}", "" ] diff --git a/src/Builder4/Editor.vala b/src/Builder4/Editor.vala index 3787edab9..c6455ab42 100644 --- a/src/Builder4/Editor.vala +++ b/src/Builder4/Editor.vala @@ -552,8 +552,11 @@ public class Editor : Object //listeners this.el.query_tooltip.connect( (x, y, keyboard_tooltip, tooltip) => { + var lbl = new Gtk.Label(this.el.tooltip_markup); + lbl.width_request = 700; + tooltip.set_custom(lbl); - return bool; + return true; }); }