Re: infinite loop problem :(
| From: | lukas at pronet dot lublin dot pl | Date: | Tue, 10 May 2005 13:55:56 +0000 |
| Subject: | Re: infinite loop problem :( | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5841@lists.php.net to get a copy of this message | ||
Cytowanie Scott Mattocks <scott@crisscott.com>:
> I think the problem is that you are connecting the value-changed signal.
> When you remove a row, you change the value of the adjustment. When
> you change the value you are telling the Clist to fill the rows. When
> you fill the rows you remove a row. (See the loop?)
>
> Why are you repopulating the CList anyway? If it's in a scrolled window
> just fill it up and let the scrolling do the work?
>
> Scott Mattocks
Im using Clist to reflects table from DB and I need to let user filter rows so
nr of rows can change - for example:
If table have 2000 rows I need to ilustrate this so I must have Clist with 2000
rows so Scrollbar is generated properly but... fetching all 2000 rows from
database is inefficient beacause there is only part of them visible at one
time.
With Clist method is_row_visible() ( is_row_visible() is source of my next post
on list ) I can detect which rows of table should be actually fetched and shown
in Clist.
--
Łukasz Wojciechowski