mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
docs: add example for signal's object attribute
This commit is contained in:
parent
492b73bc47
commit
c0c4ae3fc9
1 changed files with 16 additions and 0 deletions
|
@ -201,6 +201,22 @@ Flags
|
||||||
clicked => on_button_clicked() swapped;
|
clicked => on_button_clicked() swapped;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Object
|
||||||
|
~~~~~~
|
||||||
|
|
||||||
|
By default the widget is passed to callback as first argument. However,
|
||||||
|
you can specify another object to use as first argument of callback.
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
Gtk.Entry {
|
||||||
|
activate => grab_focus(another_entry);
|
||||||
|
}
|
||||||
|
|
||||||
|
Gtk.Entry another_entry {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
CSS Styles
|
CSS Styles
|
||||||
----------
|
----------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue