RE: [gtk-list] Drawing application



> 
> Hello,

Hi,

> I'm writing an application for magnetic field mapping. I'd 
> like to know
> if there is some way of stopping a background callback and 
> then plotting
> some points on a pixmap on a drawing area. My code reads a value given
> by a sensor, and is then supposed to plot it on the pixmap. But it
> doesn't. It only plots an array of points sometime later or when the
> mapping is done.
> 

It's hard to see what you mean... So you have the sensor connected using 
gdk_input? If so, you can give that function a lower priority. (Drawing 
has a high priority by default IIRC.)
You could also trigger a sensor-read on a timeout.

Hope this helps...

regards,

Arjan



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