The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
650 B
37 lines
650 B
using Gtk; |
|
using GLib; |
|
|
|
[GtkTemplate (ui = "/org/Meson/test.ui")] |
|
public class TestWidget : Box { |
|
public string text { |
|
get { return entry.text; } |
|
set { entry.text = value; } |
|
} |
|
|
|
[GtkChild] |
|
private Entry entry; |
|
|
|
public TestWidget (string text) { |
|
this.text = text; |
|
} |
|
} |
|
|
|
void main(string[] args) { |
|
Gtk.init (ref args); |
|
var win = new Window(); |
|
win.destroy.connect (Gtk.main_quit); |
|
|
|
var widget = new TestWidget ("SOME TEXT HERE"); |
|
|
|
win.add (widget); |
|
win.show_all (); |
|
|
|
/* Exit immediately */ |
|
Timeout.add_full (Priority.DEFAULT_IDLE, 1, () => |
|
{ |
|
Gtk.main_quit(); |
|
return false; |
|
}); |
|
|
|
Gtk.main (); |
|
}
|
|
|