Clone in a terminal:
Commit d11f3cd
Johan Mattsson - 2015-10-26T19:22:02+00:00
d11f3cdd48c3b57d87d09891d5e0cbeebe4bf84cjohan.mattsson.m@gmail.com

Fix compilator warnings

Changed files (2)

Diff

diff --git a/birdfont-test/TestRunner.vala b/birdfont-test/TestRunner.valaindex b5c69b5..cbf1291 100644--- a/birdfont-test/TestRunner.vala+++ b/birdfont-test/TestRunner.vala@@ -53,6 +53,8 @@ public class TestRunner : NativeWindow, GLib.Object  { 		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 @@ public class TestRunner : NativeWindow, GLib.Object  { 		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 @@ public class TestRunner : NativeWindow, GLib.Object  { 		for (uint i = 0; i < 3000; i++) { 			for (uint j = 0; j < 300; j++) { 				Path p = new Path ();+				p.ref ();+				p.unref (); 			} 		} 		diff --git a/libbirdfont/BackgroundImage.vala b/libbirdfont/BackgroundImage.valaindex 8a2652f..01771ea 100644--- a/libbirdfont/BackgroundImage.vala+++ b/libbirdfont/BackgroundImage.vala@@ -327,7 +327,11 @@ public class BackgroundImage { 			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 ()); 		

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112