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

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

index ddcae14..ff37182 100644 (file)
             "\t\t}",
             "\t}",
             "\tif (help.contents.size > 1) {",
-            "\t\tstr += (\"\\n\\n\"  + GLib.Markup.escape_text(help.contents.get(1).value));",
+            "\t\tthis.el.tooltip_markup =  GLib.Markup.escape_text(help.contents.get(1).value);",
             "\t}",
             "\t",
             "\tthis.el.set_markup(string.joinv(\" \",str));",
index ee08127..d30015a 100644 (file)
@@ -586,7 +586,7 @@ public class Editor : Object
                                }
                        }
                        if (help.contents.size > 1) {
-                               str += ("\n\n"  + GLib.Markup.escape_text(help.contents.get(1).value));
+                               this.el.tooltip_markup =  GLib.Markup.escape_text(help.contents.get(1).value);
                        }
                        
                        this.el.set_markup(string.joinv(" ",str));