The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Show warning message for file name errors

These changes was commited to the Birdfont repository Fri, 26 Jun 2015 09:15:08 +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, 26 Jun 2015 09:15:08 +0000 (11:15 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Fri, 26 Jun 2015 09:15:08 +0000 (11:15 +0200)
commit e77fb603b7d09295b5b23f568bcb9e3fa561220c
tree 9067e065fcee2887631fc077a859cf2cb428cc16
parent 60ad52ddf0ef1b7fdfcc52867d677676665c5aad
Show warning message for file name errors

libbirdfont/MenuTab.vala
--- a/libbirdfont/MenuTab.vala +++ b/libbirdfont/MenuTab.vala @@ -105,11 +105,13 @@ return false; } + Font current_font = BirdFont.get_current_font (); string ttf_name = ExportSettings.get_file_name (current_font) + ".ttf"; string ttf_name_mac = ExportSettings.get_file_name_mac (current_font) + ".ttf"; + print (@"$ttf_name == $ttf_name_mac"); if (ttf_name == ttf_name_mac) { - warning ("You need to choose a different name for the TTF file with Mac adjustmets."); + MainWindow.show_message ("You need to choose a different name for the TTF file with Mac adjustmets."); ttf_name_mac = ExportSettings.get_file_name_mac (current_font) + " Mac.ttf"; return false; }