1/* This is the application. */ 2public class MyApplication : Gtk.Application { 3 /* Override the 'activate' signal of GLib.Application. */ 4 protected override void activate () { 5 /* Create the window of this application and show it. */ 6 var window = new Gtk.ApplicationWindow (this); 7 window.title = "Welcome to GNOME"; 8 window.show (); 9 } 10} 11 12/* main creates and runs the application. */ 13public int main (string[] args) { 14 return new MyApplication ().run (args); 15} 16