1/* This is the application. */ 2public class MyApplication : Gtk.Application { 3 /* Override the 'activate' signal of GLib.Application. */ 4 protected override void activate () { 5 6 /* Create the window of this application and child widget and show all the things. */ 7 var window = new Gtk.ApplicationWindow (this); 8 window.set_default_size (250, 50); 9 window.title = "GNOME LinkButton"; 10 11 var linkbutton = new Gtk.LinkButton.with_label ("http://live.gnome.org", "Link to GNOME live!"); 12 13 window.add (linkbutton); 14 window.show_all (); 15 } 16} 17 18/* main creates and runs the application. */ 19public int main (string[] args) { 20 return new MyApplication ().run (args); 21} 22