diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-08-14 21:48:51 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-08-15 22:28:42 +0300 |
commit | b400cbe058df10bc37e628305c72c574177062e2 (patch) | |
tree | 9213e76af99f646b6ff19d26357ac3d6284bb2f9 /manual tests | |
parent | d57498a4fde13a04d56e7fc26199df2b10cbdf60 (diff) | |
download | meson-b400cbe058df10bc37e628305c72c574177062e2.zip meson-b400cbe058df10bc37e628305c72c574177062e2.tar.gz meson-b400cbe058df10bc37e628305c72c574177062e2.tar.bz2 |
Kill tabs dead! For good!
Diffstat (limited to 'manual tests')
-rw-r--r-- | manual tests/7 vala composite widgets/mywidget.vala | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/manual tests/7 vala composite widgets/mywidget.vala b/manual tests/7 vala composite widgets/mywidget.vala index 09a2064..68eaecc 100644 --- a/manual tests/7 vala composite widgets/mywidget.vala +++ b/manual tests/7 vala composite widgets/mywidget.vala @@ -2,40 +2,40 @@ using Gtk; [GtkTemplate (ui = "/org/foo/my/mywidget.ui")] public class MyWidget : Box { - public string text { - get { return entry.text; } - set { entry.text = value; } - } + public string text { + get { return entry.text; } + set { entry.text = value; } + } - [GtkChild] - private Entry entry; + [GtkChild] + private Entry entry; - public MyWidget (string text) { - this.text = text; - } + public MyWidget (string text) { + this.text = text; + } - [GtkCallback] - private void on_button_clicked (Button button) { - print ("The button was clicked with entry text: %s\n", entry.text); - } + [GtkCallback] + private void on_button_clicked (Button button) { + print ("The button was clicked with entry text: %s\n", entry.text); + } - [GtkCallback] - private void on_entry_changed (Editable editable) { - print ("The entry text changed: %s\n", entry.text); + [GtkCallback] + private void on_entry_changed (Editable editable) { + print ("The entry text changed: %s\n", entry.text); - notify_property ("text"); - } + notify_property ("text"); + } } void main(string[] args) { - Gtk.init (ref args); - var win = new Window(); - win.destroy.connect (Gtk.main_quit); + Gtk.init (ref args); + var win = new Window(); + win.destroy.connect (Gtk.main_quit); - var widget = new MyWidget ("The entry text!"); + var widget = new MyWidget ("The entry text!"); - win.add (widget); - win.show_all (); + win.add (widget); + win.show_all (); - Gtk.main (); + Gtk.main (); } |