The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Hide cursor

These changes was commited to the Birdfont repository Fri, 24 Apr 2015 16:29:49 +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>
Fri, 24 Apr 2015 16:29:49 +0000 (18:29 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Fri, 24 Apr 2015 16:29:49 +0000 (18:29 +0200)
commit 90f4bf41d007294d08941943307a7cb54adfe543
tree 6b3fa995caf5fa3b8a5f3a29a835d42a3e106495
parent a9aaf583f42b13280a62c1aedcac7d1cc4e1a23b
Hide cursor

libbirdfont/NativeWindow.vala
libbirdfont/PenTool.vala
--- a/libbirdfont/NativeWindow.vala +++ b/libbirdfont/NativeWindow.vala @@ -63,7 +63,10 @@ /** @return true if the current font can be exported. */ public abstract bool can_export (); + + /** Set cursor visibility */ + public abstract bool set_cursor (bool visible); } }
--- a/libbirdfont/PenTool.vala +++ b/libbirdfont/PenTool.vala @@ -555,6 +555,12 @@ warning ("move_selected_handle && move_selected"); move_selected = false; move_selected_handle = false; + } + + if (move_selected_handle || move_selected) { + MainWindow.native_window.set_cursor (false); + } else { + MainWindow.native_window.set_cursor (true); } // move control point handles