get_widget('treeviewname');// returns GtkTreeView object $liststore = new GtkListStore(Gtk::TYPE_STRING/* column type */, Gtk::TYPE_STRING /* column type */); // creates a liststore for your data $treeView->set_model($liststore); // sets the store to the treeview $cellrenderer = new GtkCellRendererText(); // create a text cell $column1 = new GtkTreeViewColumn('Field name 1', $cellrenderer, 'text', 0); // creates a column $column2 = new GtkTreeViewColumn('Field name 2', $cellrenderer, 'text', 1); // creates a column $treeView->append_column($column1); // adds the cloumn to the treeview $treeView->append_column($column2); // adds the cloumn to the treeview $liststore->append(array('string1', 'string2')); // places data in the liststore ?>