The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Put text under kerning label

These changes was commited to the Birdfont repository Sat, 28 Mar 2015 22:10:46 +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, 28 Mar 2015 22:10:46 +0000 (23:10 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sat, 28 Mar 2015 22:10:46 +0000 (23:10 +0100)
commit 74a7c590211c88e5907ff3a32030e5f2a980cfce
tree 65f194dfd29b31b7709d8619264df498bd9c56e0
parent 8c11d72b24f3b6071b1a9dab31a538f0a863a4bb
Put text under kerning label

libbirdfont/KerningDisplay.vala
libbirdfont/MenuTab.vala
--- a/libbirdfont/KerningDisplay.vala +++ b/libbirdfont/KerningDisplay.vala @@ -240,6 +240,8 @@ cr.line_to (x2, 20); cr.stroke (); cr.restore (); + + y += 30 * MainWindow.units; } y += row_height + 20; @@ -597,7 +599,6 @@ unichar c; if (MenuTab.suppress_event) { // don't update kerning while saving font - warning ("A background thread uses the current font."); return; }
--- a/libbirdfont/MenuTab.vala +++ b/libbirdfont/MenuTab.vala @@ -438,16 +438,31 @@ } public static void save_as () { + if (MenuTab.suppress_event) { + warn_if_test ("Event suppressed"); + return; + } + MenuTab.set_save_callback (new SaveCallback ()); MenuTab.save_callback.save_as(); } public static void save () { + if (MenuTab.suppress_event) { + warn_if_test ("Event suppressed"); + return; + } + MenuTab.set_save_callback (new SaveCallback ()); MenuTab.save_callback.save (); } public static void load () { + if (MenuTab.suppress_event) { + warn_if_test ("Event suppressed"); + return; + } + MenuTab.load_callback = new LoadCallback (); MenuTab.load_callback.load (); }