Re: infinite loop problem :(

From: Date: Tue, 10 May 2005 13:47:19 +0000
Subject: Re: infinite loop problem :(
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5840@lists.php.net to get a copy of this message
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 Łukasz Wojciechowski wrote:
Hi I have a GtkClist which is filled from Database. Lets say that with every scrolling action rows have to be fetched again and that they are inserted with "remove" and "insert" methods - so I can put them exactly at that row where I want. Example below falls into loop when Scrollbar is used - i would be greatful for showing me some best practices to avoid this loop.


« previous php.gtk.general (#5840) next »