[gobject-introspection] doctool: Make sure to add "new"
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] doctool: Make sure to add "new"
- Date: Fri, 15 Feb 2013 13:19:14 +0000 (UTC)
commit 80040109a9c82e0f3c756b8742499209700f65ca
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Feb 15 08:18:06 2013 -0500
doctool: Make sure to add "new"
giscanner/doctemplates/Gjs/class.tmpl | 2 +-
.../Regress.AnnotationObject.page | 2 +-
.../Regress.FooBuffer.page | 2 +-
.../Regress.FooInterface.page | 2 +-
.../Regress.FooObject.page | 2 +-
.../Regress.FooOtherObject.page | 2 +-
.../Regress.FooSubInterface.page | 2 +-
.../Regress.FooSubobject.page | 2 +-
.../Regress.TestFloating.page | 2 +-
.../Regress.TestFundamentalObject.page | 2 +-
.../Regress.TestFundamentalSubObject.page | 2 +-
.../Regress.TestInheritDrawable.page | 2 +-
.../Regress.TestInterface.page | 2 +-
.../Regress-1.0-Gjs-expected/Regress.TestObj.page | 2 +-
.../Regress.TestSubObj.page | 2 +-
.../Regress.TestWi8021x.page | 2 +-
16 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/giscanner/doctemplates/Gjs/class.tmpl b/giscanner/doctemplates/Gjs/class.tmpl
index 457361c..887c646 100644
--- a/giscanner/doctemplates/Gjs/class.tmpl
+++ b/giscanner/doctemplates/Gjs/class.tmpl
@@ -3,7 +3,7 @@
<synopsis><code>
const ${namespace.name} = imports.gi.${namespace.name};
-let ${formatter.to_underscores(node.name).lower()} = ${namespace.name}.${node.name}(\
+let ${formatter.to_underscores(node.name).lower()} = new ${namespace.name}.${node.name}(\
% if len(node.properties) > 0:
{
% for ix, property_ in enumerate(node.properties):
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.AnnotationObject.page
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.AnnotationObject.page
index e104633..2010469 100644
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.AnnotationObject.page
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.AnnotationObject.page
@@ -15,7 +15,7 @@
<synopsis><code>
const Regress = imports.gi.Regress;
-let annotation_object = Regress.AnnotationObject({
+let annotation_object = new Regress.AnnotationObject({
<link xref='Regress.AnnotationObject-function-property'>function_property</link>: value,
<link xref='Regress.AnnotationObject-string-property'>string_property</link>: value,
<link xref='Regress.AnnotationObject-tab-property'>tab_property</link>: value,
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooBuffer.page
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooBuffer.page
index 747301b..c9cd8be 100644
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooBuffer.page
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooBuffer.page
@@ -15,7 +15,7 @@
<synopsis><code>
const Regress = imports.gi.Regress;
-let foo_buffer = Regress.FooBuffer();
+let foo_buffer = new Regress.FooBuffer();
</code></synopsis>
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooInterface.page
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooInterface.page
index 556fe99..16d0311 100644
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooInterface.page
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooInterface.page
@@ -15,7 +15,7 @@
<synopsis><code>
const Regress = imports.gi.Regress;
-let foo_interface = Regress.FooInterface();
+let foo_interface = new Regress.FooInterface();
</code></synopsis>
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooObject.page
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooObject.page
index 9f2290b..8d801b7 100644
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooObject.page
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooObject.page
@@ -15,7 +15,7 @@
<synopsis><code>
const Regress = imports.gi.Regress;
-let foo_object = Regress.FooObject({
+let foo_object = new Regress.FooObject({
<link xref='Regress.FooObject-hidden'>hidden</link>: value,
<link xref='Regress.FooObject-string'>string</link>: value,
});
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooOtherObject.page
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooOtherObject.page
index deba490..5368b92 100644
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooOtherObject.page
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooOtherObject.page
@@ -15,7 +15,7 @@
<synopsis><code>
const Regress = imports.gi.Regress;
-let foo_other_object = Regress.FooOtherObject();
+let foo_other_object = new Regress.FooOtherObject();
</code></synopsis>
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooSubInterface.page
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooSubInterface.page
index 03f6888..4ace79f 100644
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooSubInterface.page
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooSubInterface.page
@@ -15,7 +15,7 @@
<synopsis><code>
const Regress = imports.gi.Regress;
-let foo_sub_interface = Regress.FooSubInterface();
+let foo_sub_interface = new Regress.FooSubInterface();
</code></synopsis>
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooSubobject.page
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooSubobject.page
index fa90c90..da87ffa 100644
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooSubobject.page
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.FooSubobject.page
@@ -15,7 +15,7 @@
<synopsis><code>
const Regress = imports.gi.Regress;
-let foo_subobject = Regress.FooSubobject();
+let foo_subobject = new Regress.FooSubobject();
</code></synopsis>
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestFloating.page
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestFloating.page
index 4aaa02d..481bea2 100644
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestFloating.page
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestFloating.page
@@ -15,7 +15,7 @@
<synopsis><code>
const Regress = imports.gi.Regress;
-let test_floating = Regress.TestFloating();
+let test_floating = new Regress.TestFloating();
</code></synopsis>
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestFundamentalObject.page
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestFundamentalObject.page
index 9b06769..d669f54 100644
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestFundamentalObject.page
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestFundamentalObject.page
@@ -15,7 +15,7 @@
<synopsis><code>
const Regress = imports.gi.Regress;
-let test_fundamental_object = Regress.TestFundamentalObject();
+let test_fundamental_object = new Regress.TestFundamentalObject();
</code></synopsis>
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestFundamentalSubObject.page
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestFundamentalSubObject.page
index 19d0c4b..4e40b9c 100644
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestFundamentalSubObject.page
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestFundamentalSubObject.page
@@ -15,7 +15,7 @@
<synopsis><code>
const Regress = imports.gi.Regress;
-let test_fundamental_sub_object = Regress.TestFundamentalSubObject();
+let test_fundamental_sub_object = new Regress.TestFundamentalSubObject();
</code></synopsis>
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInheritDrawable.page
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInheritDrawable.page
index f3efc9d..05d628f 100644
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInheritDrawable.page
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInheritDrawable.page
@@ -15,7 +15,7 @@
<synopsis><code>
const Regress = imports.gi.Regress;
-let test_inherit_drawable = Regress.TestInheritDrawable();
+let test_inherit_drawable = new Regress.TestInheritDrawable();
</code></synopsis>
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInterface.page
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInterface.page
index a91a5d1..d097d9c 100644
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInterface.page
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInterface.page
@@ -15,7 +15,7 @@
<synopsis><code>
const Regress = imports.gi.Regress;
-let test_interface = Regress.TestInterface();
+let test_interface = new Regress.TestInterface();
</code></synopsis>
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj.page
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj.page
index 9b4dd9c..9c4b902 100644
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj.page
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj.page
@@ -15,7 +15,7 @@
<synopsis><code>
const Regress = imports.gi.Regress;
-let test_obj = Regress.TestObj({
+let test_obj = new Regress.TestObj({
<link xref='Regress.TestObj-bare'>bare</link>: value,
<link xref='Regress.TestObj-boxed'>boxed</link>: value,
<link xref='Regress.TestObj-double'>double</link>: value,
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestSubObj.page
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestSubObj.page
index 5aaae32..39e755b 100644
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestSubObj.page
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestSubObj.page
@@ -15,7 +15,7 @@
<synopsis><code>
const Regress = imports.gi.Regress;
-let test_sub_obj = Regress.TestSubObj();
+let test_sub_obj = new Regress.TestSubObj();
</code></synopsis>
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestWi8021x.page
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestWi8021x.page
index dc09718..7c9958d 100644
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestWi8021x.page
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestWi8021x.page
@@ -15,7 +15,7 @@
<synopsis><code>
const Regress = imports.gi.Regress;
-let test_wi8021x = Regress.TestWi8021x({
+let test_wi8021x = new Regress.TestWi8021x({
<link xref='Regress.TestWi8021x-testbool'>testbool</link>: value,
});
</code></synopsis>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]