The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – 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
[Tue, 17 Mar 2015 21:21:13 +0000]

Updated Files

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);