The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Hide pointer when handles are moved in bezier tool

These changes was commited to the Birdfont repository Tue, 28 Apr 2015 20:05:21 +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, 28 Apr 2015 20:05:21 +0000 (22:05 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 28 Apr 2015 20:05:21 +0000 (22:05 +0200)
commit 78307d9a44b940a023085caa3c330e90d4fab5c7
tree 12f621df69f5cac4dd796d882b9c40014c4784ce
parent 196e9a32f047e197e979ade054aeb3c6907705ff
Hide pointer when handles are moved in bezier tool

libbirdfont/ForesightTool.vala
libbirdfont/StrokeTool.vala
libbirdfont/TabContent.vala
--- a/libbirdfont/ForesightTool.vala +++ b/libbirdfont/ForesightTool.vala @@ -67,6 +67,8 @@ PointSelection ps; EditPoint first_point; bool clockwise; + + MainWindow.set_cursor (NativeWindow.HIDDEN); if (b == 2) { p.release_action (p, 1, x, y); @@ -180,6 +182,7 @@ PenTool.force_direction (); state = NONE; + MainWindow.set_cursor (NativeWindow.VISIBLE); } else if (state == MOVE_POINT) { } else if (state == NONE) { } else { @@ -210,7 +213,7 @@ PenTool.active_path = current_path; PenTool.active_path.hide_end_handle = (state == MOVE_POINT); - if (state == MOVE_HANDLES || state == MOVE_LAST_HANDLE) { + if (state == MOVE_HANDLES || state == MOVE_LAST_HANDLE) { if (previous_point > 0) { return_if_fail (PenTool.active_path.points.size >= previous_point + 1); return_if_fail (PenTool.active_path.points.size > 0); @@ -285,6 +288,8 @@ } PenTool.retain_angle = false; + + MainWindow.set_cursor (NativeWindow.HIDDEN); } else { if (DrawingTools.get_selected_point_type () != PointType.QUADRATIC) { p.move_action (p, x, y);
--- a/libbirdfont/StrokeTool.vala +++ b/libbirdfont/StrokeTool.vala @@ -1054,7 +1054,7 @@ } foreach (Path p in r.paths) { - c = counters (r, p); // FIXME: this needs improvements + c = counters (r, p); if (has_zero_area_segment (p)) { remove.add (p);
--- a/libbirdfont/TabContent.vala +++ b/libbirdfont/TabContent.vala @@ -362,7 +362,7 @@ TabContent.key_release (Key.ALT_RIGHT); TabContent.key_release (Key.LOGO_LEFT); TabContent.key_release (Key.LOGO_RIGHT); - + if (MainWindow.get_current_display () is Glyph) { TabContent.key_release ((uint) ' '); }