The Birdfont Source Code
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
Hide pointer when handles are moved in bezier tool
--- 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) ' ');
}