[FOSS-GPS] Re: Download-progress callbacks in osm-gps-map (was: FoxtrotGPS paint-optimize branch)

Joshua Judson Rosen rozzin at geekspace.com
Sat May 15 16:33:55 EDT 2010


Sander van Grieken <sander at 3v8.net> writes:
> On Friday 14 May 2010 14:04:34 John Stowers wrote:
> > Sander van Grieken <sander at 3v8.net> writes:
> > >
> > > - There seems to be no callback for download-progress-reporting
> > > (number of threads, queue depth). I'd hate to ditch the visual
> > > download feedback foxtrot currently has.
> > 
> > No callbacks is by design, the number of queued tiles is exposed as a
> > gobject property (tiles-queued). It can be polled at whatever frequency
> > the UI wishes (see python demo for example).
> 
> Well I actually meant signals instead of callbacks, but fair enough,
> this should suffice.  Is it also possible to inspect currently
> running download threads, and is there a way to cancel the queue?

Actually, shouldn't it be possible to listen for a "notify::tiles-queued"
GObject signal?

-- 
"Don't be afraid to ask (λf.((λx.xx) (λr.f(rr))))."


More information about the FOSS-GPS mailing list