The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Don't show empty tool tip

These changes was commited to the Birdfont repository Tue, 31 Mar 2015 16:57:10 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Tue, 31 Mar 2015 16:57:10 +0000]

Updated Files

libbirdfont/Toolbox.vala
--- a/libbirdfont/Toolbox.vala +++ b/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 {