[gnome-builder] autotools: add empty project template
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] autotools: add empty project template
- Date: Fri, 22 Apr 2016 11:43:19 +0000 (UTC)
commit 3b13c62f49f8ef147dda553ed09c3ec270a3dc10
Author: Christian Hergert <chergert redhat com>
Date: Fri Apr 22 04:42:17 2016 -0700
autotools: add empty project template
.../autotools_templates/__init__.py | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/plugins/autotools-templates/autotools_templates/__init__.py
b/plugins/autotools-templates/autotools_templates/__init__.py
index d8434e3..0c679d4 100644
--- a/plugins/autotools-templates/autotools_templates/__init__.py
+++ b/plugins/autotools-templates/autotools_templates/__init__.py
@@ -42,7 +42,7 @@ def get_module_data_path(name):
class LibraryTemplateProvider(GObject.Object, Ide.TemplateProvider):
def do_get_project_templates(self):
- return [LibraryProjectTemplate()]
+ return [LibraryProjectTemplate(), EmptyProjectTemplate()]
class AutotoolsTemplate(Ide.TemplateBase, Ide.ProjectTemplate):
def __init__(self, id, name, icon_name, description, languages):
@@ -208,3 +208,13 @@ class LibraryProjectTemplate(AutotoolsTemplate):
files['resources/src/package.vala'] = 'src/%(prefix)s.vala'
+class EmptyProjectTemplate(AutotoolsTemplate):
+ def __init__(self):
+ super().__init__(
+ 'empty',
+ _("Empty Project"),
+ 'application-x-executable-symbolic',
+ _("Create a new empty autotools project"),
+ ['C', 'Vala']
+ )
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]