GtkListStore::append
You can use this method if you want to append a complete row
of data at the end of the list store. The items
has to be of the same size as the number of columns in the store, and
the type of each array entry has to be that of relative model column.
The function returns the iterator of the inserted row, which you can
use to refer to it after insertion.
Example 95. Append some rows to a list store
<?php
//Create new store with two columns
$store = new GtkListStore(Gobject::TYPE_STRING, Gobject::TYPE_LONG);
//append one row
$store->append(array('Tokio', 34100000));
//append another row
$store->append(array('Mexico city', 22650000));
?> |
See also:
prepend() ,
insert()