GtkListStore: Behavior of insert_before and insert_after should be changed

From: Date: Wed, 21 Dec 2005 23:43:52 +0000
Subject: GtkListStore: Behavior of insert_before and insert_after should be changed
Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2143@lists.php.net to get a copy of this message
Hello, When writing the docs for GtkListStore, I noted the too C-ish style of insert_before and insert_after. > insert_before($iter, $sibling) inserts a *new* row before $sibling, and changes the $iter to the new iterator. That pointer change is c-ish and not php-like. IMO it should be that way: > $iter = $store->insert_before($sibling); or, with an optional parameter as insert() has: > $iter = $store->insert_before($sibling, array('value0', 'value1')); So that one doesn't have to create an GtkTreeIter before one can insert a row before another one. (And we can't even create that on our own!) The same applies to insert_after. -- Regards/MfG, Christian Weiske

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.dev (#2143) next »