The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Don't show empty tool tip

Changes made to libbirdfont/Toolbox.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/Toolbox.vala +++ libbirdfont/Toolbox.vala @@ -507,11 +507,13 @@ } public void show_tooltip (string tool_tip, double x, double y) { - this.tool_tip = tool_tip; - this.tool_tip_x = x; - this.tool_tip_y = y; - - redraw_tool_box (); + if (tool_tip != "") { + this.tool_tip = tool_tip; + this.tool_tip_x = x; + this.tool_tip_y = y; + + redraw_tool_box (); + } } public class EmptySet : ToolCollection {