Re: gtk app with threads



muppet wrote:

"Cristóvão B. B. Dalla Costa" said:
   Glib->idle_add (sub { $self->update_progress (\$downloaded) });
I hope you mean Glib::Idle->add(), not Glib->idle_add().  Also, you're taking
a new reference to $downloaded, which i don't think is what you mean.

Uh, I was actually using Glib->idle_add, and Perl reported no errors.

I'll try to rewrite as you suggested, thanks.

Cristovao.



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