The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fix build error

These changes was commited to the Birdfont repository Wed, 28 Feb 2018 16:36: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
[Wed, 28 Feb 2018 16:36:20 +0000]

Updated Files

birdfont/GtkWindow.vala
build.py
--- a/birdfont/GtkWindow.vala +++ b/birdfont/GtkWindow.vala @@ -190,10 +190,12 @@ stdout.printf (d); } - public void dump_clipboard_target (Clipboard clipboard, Atom[] atoms) { - foreach (Atom target in atoms) { - print ("Target: " + target.name () + "\n"); - clipboard.request_contents (target, dump_clipboard_content); + public void dump_clipboard_target (Clipboard clipboard, Atom[]? atoms) { + if (atoms != null) { + foreach (Atom target in (!) atoms) { + print ("Target: " + target.name () + "\n"); + clipboard.request_contents (target, dump_clipboard_content); + } } }
diff --git a/build.py b/build.py
--- a/build.py +++ b/build.py @@ -23,14 +23,13 @@ process_tasks(dodo.task_libbirdfont()) process_tasks(dodo.make_birdfont_test('birdfont-test', ['libbirdgems.so', 'libbirdfont.so'])) - if config.GTK: - process_tasks(dodo.task_birdfont()) - process_tasks(dodo.task_birdfont_autotrace()) - process_tasks(dodo.task_birdfont_export()) - process_tasks(dodo.task_birdfont_import()) - process_tasks(dodo.task_man()) + process_tasks(dodo.task_birdfont()) + process_tasks(dodo.task_birdfont_autotrace()) + process_tasks(dodo.task_birdfont_export()) + process_tasks(dodo.task_birdfont_import()) + process_tasks(dodo.task_man()) compile_translations() print('Done')