[anjuta] bug#786973 - language-support-vala fails to build with vala 0.38



commit 370fa1d75e7f6388d020463104896675c324c653
Author: Alistair Thomas <astavale yahoo co uk>
Date:   Sat Sep 9 17:13:25 2017 +0100

    bug#786973 - language-support-vala fails to build with vala 0.38
    
    The CCodeModuleBase have been removed from the vala library in version 0.38.

 plugins/language-support-vala/plugin.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/language-support-vala/plugin.vala b/plugins/language-support-vala/plugin.vala
index 2cf6829..13d35fe 100644
--- a/plugins/language-support-vala/plugin.vala
+++ b/plugins/language-support-vala/plugin.vala
@@ -382,6 +382,9 @@ public class ValaPlugin : Plugin, IAnjuta.Preferences {
                var scope = get_scope (editor, position.clone ());
                var builder = new StringBuilder ();
 
+#if VALA_0_38
+               var handler_cname = "";
+#else
                var scope_prefix = "";
                if (scope != null) {
                        scope_prefix = Vala.CCodeBaseModule.get_ccode_lower_case_prefix (scope);
@@ -389,6 +392,7 @@ public class ValaPlugin : Plugin, IAnjuta.Preferences {
                                handler_name = handler_name.substring (scope_prefix.length);
                }
                var handler_cname = scope_prefix + handler_name;
+#endif
 
                if (data[2] != handler_cname && !swapped) {
                        builder.append_printf ("[CCode (cname=\"%s\", instance_pos=-1)]\n", data[2]);


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