[anjuta] vala: bgo#654502 - Allow building with libvala-0.14 (0.13 development tree)
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] vala: bgo#654502 - Allow building with libvala-0.14 (0.13 development tree)
- Date: Mon, 25 Jul 2011 11:42:13 +0000 (UTC)
commit 33f71c875580405571f09dc2162c438ea837f2de
Author: Abderrahim Kitouni <akitouni src gnome org>
Date: Sat Jul 23 19:41:38 2011 +0100
vala: bgo#654502 - Allow building with libvala-0.14 (0.13 development tree)
plugins/language-support-vala/plugin.vala | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/plugins/language-support-vala/plugin.vala b/plugins/language-support-vala/plugin.vala
index b64bc81..cea836e 100644
--- a/plugins/language-support-vala/plugin.vala
+++ b/plugins/language-support-vala/plugin.vala
@@ -245,6 +245,16 @@ public class ValaPlugin : Plugin {
if (source_file.filename != file.get_path())
continue;
+#if VALA_0_14
+ uint8[] contents;
+ try {
+ file.load_contents (null, out contents, null);
+ source_file.content = (string) contents;
+ update_file (source_file);
+ } catch (Error e) {
+ // ignore
+ }
+#else
string contents;
try {
file.load_contents (null, out contents, null, null);
@@ -253,6 +263,7 @@ public class ValaPlugin : Plugin {
} catch (Error e) {
// ignore
}
+#endif
return;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]