The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Update scrollbar in overview

These changes was commited to the Birdfont repository Sat, 19 Sep 2015 13:03:42 +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, 19 Sep 2015 13:03:42 +0000]

Updated Files

libbirdfont/OverView.vala
--- a/libbirdfont/OverView.vala +++ b/libbirdfont/OverView.vala @@ -811,6 +811,8 @@ if (selected_item.glyphs != null) { selected_items.add ((!) selected_item.glyphs); } + + update_scrollbar (); return; case Key.RIGHT: @@ -821,6 +823,8 @@ if (selected_item.glyphs != null) { selected_items.add ((!) selected_item.glyphs); } + + update_scrollbar (); return; case Key.LEFT: @@ -831,6 +835,8 @@ if (selected_item.glyphs != null) { selected_items.add ((!) selected_item.glyphs); } + + update_scrollbar(); return; case Key.DOWN: @@ -841,6 +847,8 @@ if (selected_item.glyphs != null) { selected_items.add ((!) selected_item.glyphs); } + + update_scrollbar (); return; case Key.PG_UP: @@ -853,6 +861,8 @@ if (selected_item.glyphs != null) { selected_items.add ((!) selected_item.glyphs); } + + update_scrollbar (); return; case Key.PG_DOWN: @@ -865,6 +875,8 @@ if (selected_item.glyphs != null) { selected_items.add ((!) selected_item.glyphs); } + + update_scrollbar (); return; case Key.DEL: @@ -1259,7 +1271,6 @@ nrows = 1; } - // FIXME: this is not correct visible_rows = allocation.height / OverViewItem.height; scroll_size = visible_rows / nrows; MainWindow.set_scrollbar_size (scroll_size);