The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix compilator warnings

These changes was commited to the Birdfont repository Mon, 26 Oct 2015 19:22:02 +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>
Mon, 26 Oct 2015 19:22:02 +0000 (20:22 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 26 Oct 2015 19:22:02 +0000 (20:22 +0100)
commit d11f3cdd48c3b57d87d09891d5e0cbeebe4bf84c
tree 2fe1f0db8e0e383902db52a0ceaad19ffb554410
parent 2983eddc8879cb73f0ab10d86a8cdf189a534efb
Fix compilator warnings

birdfont-test/TestRunner.vala
libbirdfont/BackgroundImage.vala
--- a/birdfont-test/TestRunner.vala +++ b/birdfont-test/TestRunner.vala @@ -53,6 +53,8 @@ for (uint i = 0; i < 3000; i++) { for (uint j = 0; j < 300; j++) { GLib.Object o = new GLib.Object (); + o.ref (); + o.unref (); } } @@ -81,6 +83,8 @@ for (uint i = 0; i < 3000; i++) { for (uint j = 0; j < 300; j++) { EditPoint ep = new EditPoint (); + ep.ref (); + ep.unref (); } } @@ -91,6 +95,8 @@ for (uint i = 0; i < 3000; i++) { for (uint j = 0; j < 300; j++) { Path p = new Path (); + p.ref (); + p.unref (); } }
--- a/libbirdfont/BackgroundImage.vala +++ b/libbirdfont/BackgroundImage.vala @@ -327,7 +327,11 @@ return; } - folder.make_directory (); + try { + folder.make_directory (); + } catch (GLib.Error e) { + warning (e.message); + } converted = MainWindow.native_window.convert_to_png (path.dup (), ((!) png_image.get_path ()).dup ());