The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Default zoom for new glyph versions

These changes was commited to the Birdfont repository Sat, 23 May 2015 13:34:06 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Sat, 23 May 2015 13:34:06 +0000 (15:34 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sat, 23 May 2015 13:34:06 +0000 (15:34 +0200)
commit 8c9c47711bd0a65eb158e7183c338982e205e0f6
tree d6fd79ce3fbcd1df1cd6198511edd7af5d4d16fc
parent f319bf52ad7769ed3abb8001ca74a7b00673283b
Default zoom for new glyph versions

libbirdfont/OverViewItem.vala
libbirdfont/VersionList.vala
--- a/libbirdfont/OverViewItem.vala +++ b/libbirdfont/OverViewItem.vala @@ -54,6 +54,7 @@ version_menu.add_glyph_item.connect ((glyph) => { ((!) glyphs).insert_glyph (glyph, true); }); + version_menu.signal_delete_item.connect ((glyph_index) => { OverView v = MainWindow.get_overview (); version_menu = new VersionList ((!) glyphs);
--- a/libbirdfont/VersionList.vala +++ b/libbirdfont/VersionList.vala @@ -120,8 +120,6 @@ int i = get_current_version_index (); set_selected_item (get_action_index (i)); } - - get_current ().selected_canvas (); } private int get_current_version_index () { @@ -190,19 +188,17 @@ current_version_id = g.version_id; deselect_all (); ma.set_selected (true); - - reload_all_open_glyphs (); glyph_collection.set_selected (g); - /* + reload_all_open_glyphs (); + if (!is_null (BirdFont.current_glyph_collection)) { current_glyph = MainWindow.get_current_glyph (); g.set_allocation (current_glyph.allocation); - g.set_default_zoom (); - } - */ - + g.close_path (); + g.reset_zoom (); + } } /** Reload a glyph when a new version is selected. Updates the path