The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Move graphics rendering to its own method in overview item

Changes made to libbirdfont/OverView.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/OverView.vala +++ libbirdfont/OverView.vala @@ -557,6 +557,7 @@ item = new OverViewItem (); item.set_character (character); item.set_glyphs (glyphs); + item.generate_graphics (); item.x = x; item.y = y; visible_items.add (item); @@ -590,6 +591,11 @@ item = visible_items.get (i); glyphs = f.get_glyph_collection_by_name ((!) item.character.to_string ()); item.set_glyphs (glyphs); + } + + for (int i = 0; i < visible_size; i++) { + item = visible_items.get (i); + item.generate_graphics (); } }