The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Load empty canvas when all tabs have been closed

These changes was commited to the Birdfont repository Fri, 10 Oct 2014 13:01:20 +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>
Fri, 10 Oct 2014 13:01:20 +0000 (15:01 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Fri, 10 Oct 2014 13:01:20 +0000 (15:01 +0200)
commit a52f2203870ab4c877aa7e547810d50bf0de0873
tree 6e7fa830ea82a38d5c2ca9a90e2900133169a66d
parent 6a21a56ceb4c263ececf496ee51469e658b91dc8
Load empty canvas when all tabs have been closed

libbirdfont/TabBar.vala
--- a/libbirdfont/TabBar.vala +++ b/libbirdfont/TabBar.vala @@ -269,6 +269,7 @@ if (tabs.size == 1) { empty_tab_canvas = new EmptyTab ("", ""); gc = new GlyphCollection.with_glyph('\0', ""); + MainWindow.get_glyph_canvas ().set_display (empty_tab_canvas); MainWindow.get_glyph_canvas ().set_current_glyph_collection (gc); empty_tab = new Tab (empty_tab_canvas, 0, false); signal_tab_selected (empty_tab);