using Gtk; public class Browser : TreeView { public Browser() { this.row_activated.connect(this.on_row_activated); } private void on_row_activated(Browser sender, TreePath treepath, TreeViewColumn column) { } public void testfunction() { print("test\n"); } public static int main(string[] args) { var b = new Browser(); b.testfunction(); return 0; } }