Re: [gtk-list] FAQ 5.11 (Why doesn´t my progressbar upate) with gtk-perl



On Thu, Oct 21, 1999 at 06:16:34PM +0200, Ramin Motakef wrote:
> The program reads a big (ca. 2MB) Datafile wich takes quite some time,
> so i would like to give the users some feedback that "there is
> something going on" with a Gtk::ProgressBar:
>  
> while(defined($line = <DATA> )){
> 	if ($i % 100 == 0) {
> 	    $val=($i/($count));	
> 	    $pbar->update($val);	
> 	    while (Gtk::Gdk->events_pending) {
                      ^^^^^^^^

You should use Gtk->events_pending() here.

lupus

-- 
"You guys are definitely worth a wedding party." The Debian folks at ALS99



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]