summaryrefslogtreecommitdiff
path: root/examples/gtk3-template.js
diff options
context:
space:
mode:
authorSonny Piers <sonny@fastmail.net>2022-07-20 18:42:01 +0200
committerSonny Piers <sonny@fastmail.net>2022-07-20 18:42:01 +0200
commit5899cc5f4f716ac4afd05b6f4fd35762d069c966 (patch)
tree0b71b02263d1b06a3b9d4fcb433a77b1d13ad2a1 /examples/gtk3-template.js
parenta3d5c5a094dd0a862d7902af46b140b91947f119 (diff)
downloadgjs-5899cc5f4f716ac4afd05b6f4fd35762d069c966.tar.gz
doc: Reflect support for constructor with GObject
Diffstat (limited to 'examples/gtk3-template.js')
-rw-r--r--examples/gtk3-template.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/gtk3-template.js b/examples/gtk3-template.js
index 0ba1dbf2..3ec64cb5 100644
--- a/examples/gtk3-template.js
+++ b/examples/gtk3-template.js
@@ -29,8 +29,8 @@ const ExampleWindow = GObject.registerClass({
'button',
],
}, class ExampleWindow extends Gtk.Window {
- _init(params = {}) {
- super._init(params);
+ constructor(params = {}) {
+ super(params);
// The template has been initialized and you can access the children
this.box.visible = true;