using Gtk; using GLib; public class Test { static int main (string[] args) { Gtk.init (ref args); Gtk.Window win = new Gtk.Window (Gtk.WindowType.TOPLEVEL); win.set_default_size (200, 100); TextViewUrl text_view = new TextViewUrl (); Gtk.TextIter iter; text_view.buffer.get_end_iter (out iter); text_view.insert_url (iter, "http://gtk.developpez.com/"); win.add (text_view); win.destroy += Gtk.main_quit; win.show_all (); Gtk.main (); return 0; } }