Re: GTKCombo coughs on large data sets
| From: | Steph Fox | Date: | Fri, 17 Feb 2006 04:29:31 +0000 |
| Subject: | Re: GTKCombo coughs on large data sets | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6750@lists.php.net to get a copy of this message | ||
Yep. PHP-GTK 2.
----- Original Message ----- From: "Benjamin Smith" <lists@benjamindsmith.com>
To: <php-gtk-general@lists.php.net>
Sent: Thursday, February 16, 2006 11:53 PM
Subject: Re: [PHP-GTK] GTKCombo coughs on large data sets
On Tuesday 14 February 2006 19:50, Madeleine D. wrote:But, I've always wondered - does it make any difference if you set the combo with GtkListItem instead of the simpler set_popdown_strings?Hmmm.. interesting idea. Looks like it might be a problem with the GtkList() object. I tried the following to test your idea: $combo=&New GtkCombo(); $list=$combo->list; $listofitems=array(); for ($i=0; $i<3000; $i++){ $listitem=&New GtkListItem("Item Number $i"); $listofitems[]=$listitem;} $list->Append_Items($listofitems); $win=&New GtkWindow(); $win->Add($combo); $win->Show_All(); I got identical results. So, it looks like it's a problem with the GTKList() object. Has anybody got a fix? -BenBenjamin Smith wrote:Is PHP-GTK 1.x supported anymore? I've got a pretty stable codebase I'm nursing along for a while longer... Anyhow, when I create a large dataset for GtkCombo, it dies and won't display the list in the dropdown. The items are "there", in that you can use the arrow keys and scroll thru them, but they don't popdown anymore. Here's some sample code that recreates it, Windows 2000 + php 4.4.x. $popdown=array(); for ($i=0; $i<3000; $i++)$popdown[]="Item Number $i";$combo=&New GtkCombo(); $combo->Set_Popdown_Strings($popdown); $win=&New GtkWindow(); $win->Add($combo); $win->Show_All(); What can I do about this? -Ben-- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- "The best way to predict the future is to invent it." - XEROX PARC slogan, circa 1978 -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com