diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-14 23:04:41 -0500 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-14 23:18:00 -0500 |
commit | 71a1705667f297c122b8637556924c9d16e36801 (patch) | |
tree | 975d21523b6d2304d7c7bb629ba96b7a532db4e1 /giscanner/doctemplates | |
parent | 5a890b79fd720a9eec4d3b9eb1c9cdd6d7b24653 (diff) | |
download | gobject-introspection-71a1705667f297c122b8637556924c9d16e36801.tar.gz |
doctool: Fix Gjs class signature
Diffstat (limited to 'giscanner/doctemplates')
-rw-r--r-- | giscanner/doctemplates/Gjs/class.tmpl | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/giscanner/doctemplates/Gjs/class.tmpl b/giscanner/doctemplates/Gjs/class.tmpl index 435b31a5..5882d9fa 100644 --- a/giscanner/doctemplates/Gjs/class.tmpl +++ b/giscanner/doctemplates/Gjs/class.tmpl @@ -1,17 +1,14 @@ <%inherit file="/class.tmpl"/> <%block name="synopsis"> <synopsis><code> -from gi.repository import ${namespace.name} +const ${namespace.name} = imports.gi.${namespace.name}; -${formatter.to_underscores(node.name).lower()} = ${namespace.name}.${node.name}(\ +let ${formatter.to_underscores(node.name).lower()} = ${namespace.name}.${node.name}({ % for ix, property_ in enumerate(node.properties): % if property_.construct or property_.construct_only or property_.writable: -<link xref='${namespace.name}.${node.name}-${property_.name}'>${property_.name.replace('-', '_')}</link>=value\ -% if ix != len(node.properties) - 1: -, \ -% endif + <link xref='${namespace.name}.${node.name}-${property_.name}'>${property_.name.replace('-', '_')}</link>: value, % endif % endfor -)\ +}); </code></synopsis> </%block> |