Re: PHP-GTK2 List Store ?
| From: | Steph | Date: | Fri, 07 Oct 2005 14:52:57 +0000 |
| Subject: | Re: PHP-GTK2 List Store ? | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-1753@lists.php.net to get a copy of this message | ||
Josh, could you possibly mail me a script I can 'just run'?
----- Original Message -----
From: "Joshua Seward" <jseward@columbus.rr.com>
To: "PHP DEV" <php-gtk-dev@lists.php.net>
Sent: Friday, October 07, 2005 9:45 AM
Subject: [PHP-GTK-DEV] PHP-GTK2 List Store ?
The following code only updates the first two rows.
It sets the first row to Column #1, Column #1
It sets the sec row to Column #3, Column #3
This tells me that the iterator or pointer is not pushed up one in ListStore
when iter_next is called.
Is this so and how would I update all of three rows without just using
iter_next?
Also get_iter is not working for me. Says it needs one arg and when given it
throws a windows crash.
$store->append(array('test1','test1'));
$store->append(array('test2','test2'));
$store->append(array('test3','test3'));
$iter = $store->get_iter_first();
$store->set($iter, 0, 'Column #1', 1, 'Column #1');
$iter = $store->iter_next($iter);
$iter = $store->get_iter_from_string($iter);
$store->set($iter, 0, 'Column #2', 1, 'Column #2');
$iter = $store->iter_next($iter);
$iter = $store->get_iter_from_string($iter);
$store->set($iter, 0, 'Column #3', 1, 'Column #3');
Thanks for any help.
Josh
P.S. The docs are down!