[anjuta] language-support-vala: update for API break in libvala



commit 2db9e79ec72b562bd2881850e1cd64e8094af7be
Author: Abderrahim Kitouni <akitouni src gnome org>
Date:   Wed Aug 3 12:58:16 2011 +0100

    language-support-vala: update for API break in libvala

 configure.ac                              |    2 +-
 plugins/language-support-vala/plugin.vala |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f18346d..bc543e3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,7 +53,7 @@ GLADEUI_REQUIRED=3.9.2
 
 dnl Vala
 VALA12_REQUIRED=0.11.2
-VALA14_REQUIRED=0.13.0
+VALA14_REQUIRED=0.13.2
 
 dnl Introspection
 GI_REQUIRED=0.9.5
diff --git a/plugins/language-support-vala/plugin.vala b/plugins/language-support-vala/plugin.vala
index cea836e..7858c5a 100644
--- a/plugins/language-support-vala/plugin.vala
+++ b/plugins/language-support-vala/plugin.vala
@@ -330,7 +330,11 @@ public class ValaPlugin : Plugin {
 
 		var scope_prefix = "";
 		if (scope != null) {
+#if VALA_0_14
+			scope_prefix = Vala.CCodeBaseModule.get_ccode_lower_case_prefix (scope);
+#else
 			scope_prefix = scope.get_lower_case_cprefix ();
+#endif
 			if (handler_name.has_prefix (scope_prefix))
 				handler_name = handler_name.substring (scope_prefix.length);
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]