The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Suppress events when guide position is adjusted

These changes was commited to the Birdfont repository Tue, 17 Mar 2015 21:21:13 +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, 17 Mar 2015 21:21:13 +0000 (22:21 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 17 Mar 2015 21:21:13 +0000 (22:21 +0100)
commit 57d4ee55b901660d34119d02d879cea9d2498788
tree 4c8a3a7a4b632a5c54eddee513b88d31f622cb5a
parent bce508b654501fba16044268130603684f12b1f9
Suppress events when guide position is adjusted

libbirdfont/Line.vala
libbirdfont/TabBar.vala
--- a/libbirdfont/Line.vala +++ b/libbirdfont/Line.vala @@ -129,10 +129,12 @@ Glyph g; TextListener listener; string position; + bool text_input = false; if (get_active ()) { if (button == 3 || KeyBindings.has_shift ()) { - move = false; + move = false; + text_input = true; position = @"$pos"; listener = new TextListener (t_("Position"), position, t_("Move")); @@ -166,7 +168,7 @@ active = false; } - return move; + return move || text_input; } void redraw_line () {
--- a/libbirdfont/TabBar.vala +++ b/libbirdfont/TabBar.vala @@ -659,7 +659,7 @@ Theme.text_color (progress_icon, "Foreground 2"); progress_icon.set_font_size (progress_size); - progress_icon.widget_x = w - 20 / scale; + progress_icon.widget_x = w - 14 / scale; progress_icon.widget_y = h / 2.0; progress_icon.use_cache (false);