The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Better parsing of TrueType outlines

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 @@ -48,8 +48,7 @@ this.y = y; this.character = character; this.glyphs = glyphs; - this.info = new CharacterInfo (character, glyphs); - info.set_position (x + width - 17, y + height - 22.5); + this.info = new CharacterInfo (character, glyphs); label = new Text ((!) character.to_string (), 17); truncate_label (); @@ -110,10 +109,9 @@ bool a; GlyphCollection g; bool s = (x <= px <= x + width) && (y <= py <= y + height); - + if (has_icons () && glyphs != null) { g = (!) glyphs; - version_menu.set_position (x + width - 21, y + height - 18); a = version_menu.menu_item_action (px, py); // select one item on the menu if (a) { @@ -123,6 +121,7 @@ version_menu.menu_icon_action (px, py); // click in the open menu } + info.set_position (x + width - 17, y + height - 22.5); if (has_icons () && info.is_over_icon (px, py)) { MainWindow.get_overview ().set_character_info (info); }