Re: PHP-GTK2 List Store ? - *nix tester needed please
| From: | Steph | Date: | Sat, 08 Oct 2005 14:57:46 +0000 |
| Subject: | Re: PHP-GTK2 List Store ? - *nix tester needed please | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-1756@lists.php.net to get a copy of this message | ||
Hi Josh,
I have a fix for treepath, but it may or may not be kosher. All the
treepath methods work excepting the extra constructors, i.e.
GtkTreePath::new_from_string();
GtkTreePath::new_from_indices();
GtkTreePath::new_first();
and
$treepath->get_indices();
Still it's useful, because there are methods like $treepath->next() ,
$treepath->down() and $treepath->to_string() available, and these all work
for me.
$treemodel->get_iter() also works when GtkTreePath is working.
We need to figure out what's going to happen about iter_next() - in GTK+ it
returns a boolean value, but then so does get_iter(). I suspect Andrei
would prefer to see it move to the next iter on the grounds that it's more
intuitive to have it behave that way, but I'm second-guessing him over this.
- Steph
----- Original Message -----
From: "Joshua Seward" <jseward@columbus.rr.com>
To: "'Steph'" <steph@zend.com>
Sent: Saturday, October 08, 2005 1:30 AM
Subject: RE: [PHP-GTK-DEV] PHP-GTK2 List Store ? - *nix tester needed please
Thanks Steph,
I will have to play with iter next some more to understand it. My goal was
not to just reset all the data in every row. I knew the foreach could do
this. I was trying to learn how to manipulate the rows individually. Just
learning how everything works. Thanks you for the time and help though.
Josh
-----Original Message-----
From: Steph [mailto:steph@zend.com]
Sent: Friday, October 07, 2005 2:45 PM
To: Joshua Seward; PHP DEV
Subject: Re: [PHP-GTK-DEV] PHP-GTK2 List Store ? - *nix tester needed please
Hi Josh,
OK, I've fiddled with that script a little to make it more obvious what's
going on & to demo liststore updating - pls find attached two versions (one
working, one broken). Could someone on a *nix-based system please run the
'broken' script and say whether get_iter() causes a crash for them too?
BTW iter_next works fine, it's just you were passing it a boolean value so
it never reached 2.
I'll see if I can do something about the docs tomorrow.
- Steph