The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Unhide cursor in tool box

These changes was commited to the Birdfont repository Sat, 25 Apr 2015 11:01:52 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Sat, 25 Apr 2015 11:01:52 +0000]

Updated Files

libbirdfont/ForesightTool.vala
libbirdfont/TabBar.vala
libbirdfont/Toolbox.vala
--- a/libbirdfont/ForesightTool.vala +++ b/libbirdfont/ForesightTool.vala @@ -72,6 +72,7 @@ p.release_action (p, 2, x, y); current_path.hide_end_handle = true; state = NONE; + MainWindow.native_window.set_cursor (NativeWindow.VISIBLE); return; } @@ -193,6 +194,10 @@ last_move_x = x; last_move_y = y; + + if (state == NONE) { + MainWindow.native_window.set_cursor (NativeWindow.VISIBLE); + } PenTool.active_path = current_path; PenTool.active_path.hide_end_handle = (state == MOVE_POINT);
--- a/libbirdfont/TabBar.vala +++ b/libbirdfont/TabBar.vala @@ -83,6 +83,8 @@ } public void motion (double x, double y) { + MainWindow.native_window.set_cursor (NativeWindow.VISIBLE); + if (MenuTab.suppress_event) { warn_if_test ("Event suppressed"); return;
--- a/libbirdfont/Toolbox.vala +++ b/libbirdfont/Toolbox.vala @@ -257,7 +257,9 @@ bool a; bool consumed = false; bool active; - + + MainWindow.native_window.set_cursor (NativeWindow.VISIBLE); + foreach (Expander exp in current_set.get_expanders ()) { if (exp.visible) { a = exp.is_over (x, y);