| Server IP : 209.205.66.10 / Your IP : 216.73.216.173 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 User : ( 1006) PHP Version : 8.5.8 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/gjs/examples/ |
Upload File : |
<!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later -->
<!-- SPDX-FileCopyrightText: 2021 Andy Holmes <andyholmes@gnome.org> -->
<interface>
<!-- Template
* class: must be the `GTypeName` given in the class definition, or the
class name prefixed with `Gjs_` if not given (eg `Gjs_ExampleWinow`)
* parent: the GType name of the derived class
-->
<template class="ExampleWindow" parent="GtkWindow">
<property name="default-width">480</property>
<property name="default-height">320</property>
<child>
<object class="GtkBox" id="box">
<property name="visible">True</property>
<child>
<object class="GtkButton" id="button">
<property name="label">Button</property>
<property name="halign">center</property>
<property name="hexpand">True</property>
<property name="valign">center</property>
<property name="visible">True</property>
<!-- Signals
* name: the signal name
* handler: the name of method on the subclass to call when emitted
* swapped: must always be "no" in GJS applications
* object: the object bound to `this` in the callback. This is
usually the template class (eg. `ExampleClass`) but may also be
an object ID (eg. `box` or `button`).
-->
<signal name="clicked"
handler="_onButtonClicked"
swapped="no"
object="ExampleWindow"/>
</object>
</child>
</object>
</child>
</template>
</interface>