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

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

index 10184c9..f56913c 100644 (file)
            "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;",
              "}",
              ""
             ]
index 3787eda..c6455ab 100644 (file)
@@ -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;
                        });
                }