[gnome-builder/gnome-builder-3-20] Autools-templates: C - Enable VAPI only for C projects



commit dc2232c4097023cddce8d76a4b579b62f31a1028
Author: Daniel Espinosa <esodan gmail com>
Date:   Mon Jul 11 17:00:38 2016 -0500

    Autools-templates: C - Enable VAPI only for C projects

 .../autotools_templates/__init__.py                |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/autotools-templates/autotools_templates/__init__.py 
b/plugins/autotools-templates/autotools_templates/__init__.py
index 4838e64..ad07985 100644
--- a/plugins/autotools-templates/autotools_templates/__init__.py
+++ b/plugins/autotools-templates/autotools_templates/__init__.py
@@ -143,7 +143,7 @@ class AutotoolsTemplate(Ide.TemplateBase, Ide.ProjectTemplate):
         scope.get('enable_i18n').assign_boolean(True)
         scope.get('enable_gtk_doc').assign_boolean(False)
         scope.get('enable_gobject_introspection').assign_boolean(True)
-        scope.get('enable_vapi').assign_boolean(True)
+        scope.get('enable_vapi').assign_boolean(self.language == 'c')
         scope.get('enable_vala').assign_boolean(self.language == 'vala')
         scope.get('translation_copyright').assign_string('Translation copyright holder')
         scope.get('language').assign_string(self.language)


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