The Birdfont Source Code


All Repositories / birdfont.git / commit – 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
author Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 31 Mar 2015 16:57:10 +0000 (18:57 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 31 Mar 2015 16:57:10 +0000 (18:57 +0200)
commit b842c976c987135034810041bee84b58340c2574
tree cabb2ff88ff2d64e9006c654209584503927bf54
parent 50d2e5a3b0863d5b9f9e7de62d8c9de54b1f2f3d
Don't show empty tool tip

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 {