Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.sao.ru/cats/~satr/GTK2/sec-idlefunctions.html
Дата изменения: Fri Jul 19 21:49:43 2002 Дата индексирования: Tue Oct 2 02:33:51 2012 Кодировка: Поисковые слова: trees |
What if you have a function which you want to be called when nothing else is happening ?
gint gtk_idle_add( GtkFunction function, gpointer data );
This causes GTK to call the specified function whenever nothing else is happening.
void gtk_idle_remove( gint tag );
I won't explain the meaning of the arguments as they follow very much like the ones above. The function pointed to by the first argument to gtk_idle_add will be called whenever the opportunity arises. As with the others, returning FALSE will stop the idle function from being called.