21 lines
509 B
Vala
21 lines
509 B
Vala
using kr.pe.elex.hello_world;
|
|
|
|
namespace kr.pe.elex.hello_world {
|
|
|
|
class MyApplication : Gtk.Application {
|
|
|
|
protected override void activate () {
|
|
var window = new Gtk.ApplicationWindow (this);
|
|
window.set_title ("Welcome to GNOME");
|
|
window.set_default_size (200, 100);
|
|
var label = new Gtk.Label ("Hello GNOME!");
|
|
window.add (label);
|
|
window.show_all ();
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
int main (string[] args) {
|
|
return new MyApplication ().run (args);
|
|
} |