Commit 1f6e8d87 authored by Christian Hergert's avatar Christian Hergert
Browse files

meson-templates: code style cleanup

parent 3dd0ab42
......@@ -37,7 +37,9 @@ _ = Ide.gettext
class LibraryTemplateProvider(GObject.Object, Ide.TemplateProvider):
def do_get_project_templates(self):
return [GnomeProjectTemplate(), LibraryProjectTemplate(), EmptyProjectTemplate()]
return [GnomeProjectTemplate(),
class MesonTemplateLocator(Template.TemplateLocator):
......@@ -101,8 +103,7 @@ class MesonTemplate(Ide.TemplateBase, Ide.ProjectTemplate):
self.language = 'c'
if self.language not in ('c', 'c++', 'javascript', 'python', 'vala'):
task.return_error(GLib.Error('Language %s not supported' %
task.return_error(GLib.Error('Language %s not supported' % self.language))
if 'versioning' in params:
......@@ -170,6 +171,7 @@ class MesonTemplate(Ide.TemplateBase, Ide.ProjectTemplate):
'appid': appid,
'name_': name_,
'name': name,
'exec_name': exec_name,
files = {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment