The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Fix build error

Changes made to birdfont/GtkWindow.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- birdfont/GtkWindow.vala +++ 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); + } } }