Blame platform-demos/C/samples/hello-in-vala/hello-world.vala
|
Packit |
1470ea |
public class MyApplication : Gtk.Application {
|
|
Packit |
1470ea |
protected override void activate () {
|
|
Packit |
1470ea |
var window = new Gtk.ApplicationWindow (this);
|
|
Packit |
1470ea |
var label = new Gtk.Label ("Hello GNOME!");
|
|
Packit |
1470ea |
window.add (label);
|
|
Packit |
1470ea |
window.set_title ("Welcome to GNOME");
|
|
Packit |
1470ea |
window.set_default_size (200, 100);
|
|
Packit |
1470ea |
window.show_all ();
|
|
Packit |
1470ea |
}
|
|
Packit |
1470ea |
}
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
public int main (string[] args) {
|
|
Packit |
1470ea |
return new MyApplication ().run (args);
|
|
Packit |
1470ea |
}
|