"Prescott, Richard" wrote:
> 
> >Try to relax the X server load by, e.g., redrawing only during idle
> >periods (I knew how to do it in Tcl/Tk, but don't ask me for GTK).
> 
> How ?
> 

For gtk :

-------------------------------------------------
int idle_func_id ;

gint idle_function(gpointer data) ;
/* must return TRUE to continue ( FALSE disable idle function ) */

idle_func_id = gtk_idle_add(idle_function,data) ;

/* and */

gtk_idle_remove(idle_func_id) ;

-------------------------------------------------

I use that to display real-time video acquisition.
(precise time but large period -> enough time to display between 2
acquisitions)

-- KUMSTA Christophe
-- <[EMAIL PROTECTED]>
-- real-time system developper
-- RT-Linux (Use the source luke)
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to