Re: How to write a procedure that can be stopped



> From: Zbigniew Galias <galias ucsd edu>
>
> I was thinking about checking within this function whether a
> certain variable (modified with a button click) was altered.
> For this however the program has to take care of other events.
> What are the functions I should call from within the procedure
> to check whether there are some events waiting and to allow the
> main program to take care of it.

You want to use g_main_iteration() (in 1.2) or
g_main_context_iteration() (in 2.0).

Ron Steinke




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