src/Builder4/Editor.bjs
authorAlan <alan@roojs.com>
Wed, 27 Mar 2024 09:03:18 +0000 (17:03 +0800)
committerAlan <alan@roojs.com>
Wed, 27 Mar 2024 09:03:18 +0000 (17:03 +0800)
src/Builder4/Editor.vala

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

index 8bb5e40..b474d99 100644 (file)
             "\t}",
             "\tif (help.contents.size > 1) {",
             "\t\tthis.el.tooltip_markup =  GLib.Markup.escape_text(help.contents.get(1).value);",
+            "\t} else {",
+            "\t\tthis.el.tooltip_markup = GLib.Markup.escape_text((help.contents.get(0).value)",
             "\t}",
-            "\t",
             "\tthis.el.set_markup(string.joinv(\" \",str));",
             "\t",
             "}"
index ad50296..ec52d80 100644 (file)
@@ -597,8 +597,9 @@ public class Editor : Object
                        }
                        if (help.contents.size > 1) {
                                this.el.tooltip_markup =  GLib.Markup.escape_text(help.contents.get(1).value);
+                       } else {
+                               this.el.tooltip_markup = GLib.Markup.escape_text((help.contents.get(0).value)
                        }
-                       
                        this.el.set_markup(string.joinv(" ",str));
                        
                }