How can I retrieve the row data from a GtkTreeView in PHP?
My try:
// $this->guidata = new GtkListStore();
// $this->view = new GtkTreeView($this->guidata);
$dutarray = array();
$selection = $this->view->get_selection();
$selection->select_all();
$dutArray = $selection->get_selected_rows();
Thank you for helping!
greets leon22
PS: I have a table with 2 columns and n rows (added the rows with $this->guidata->append($row) )
The iteration goes over GtkListStore not GtkTreeView! With this code you can retrieve the values from the list!
function to be able to add key/value pairs to an array