[XForms] [patch] sliders and counters

Angus Leeming angus.leeming at btopenworld.com
Thu May 6 13:16:21 EDT 2004


The patch attached uses a timeout to control the rate at which the 
slider/counter is incremented. This replaces the current strategy 
which used a simple counter loop and which has become unusable with 
today's fast processors.

The timeout is configurable on a per-slider/counter basis using the 
new accessor functions
	int fl_get_counter_repeat(FL_OBJECT * ob);
	void fl_set_counter_repeat(FL_OBJECT * ob, int millisec);
	int fl_get_slider_repeat(FL_OBJECT *ob);
	void fl_set_slider_repeat(FL_OBJECT *ob, int millisec);

Once again, feedback is, of course, welcome. Else I'll commit 
tomorrow.

I think that's all patches in the queue now dealt with. Waiting on 
Jeff and his 'client callback' patch. Other than that, all systems 
should be go.

What else is needed for the 1.1 release?

Angus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slider_counter.diff
Type: text/x-diff
Size: 8133 bytes
Desc: not available
Url : attachments/20040506/8b3d61c5/attachment-0010.bin 


More information about the Xforms mailing list