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/OverViewItem.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/OverViewItem.vala +++ libbirdfont/OverViewItem.vala @@ -56,8 +56,10 @@ } public void set_glyphs (GlyphCollection? gc) { - glyphs = gc; - + glyphs = gc; + } + + public void generate_graphics () { if (glyphs != null) { version_menu = new VersionList ((!) glyphs); version_menu.add_glyph_item.connect ((glyph) => { @@ -81,7 +83,7 @@ truncate_label (); } - draw_background (); + draw_background (); } public void draw_glyph_from_font () {