[maemo-developers] [maemo-developers] gtk-infoprint

From: Eero Tamminen eero.tamminen at movial.fi
Date: Fri May 19 11:07:34 EEST 2006

> gtk_banner_show_animation(app, "Searching");
> slow_searching_function();
> gtk_banner_close(app);

Are you calling the gtk mainloop (or otherwise letting the widget
process events) occasionally from the slow_searching_function()
so that:
- banner can process the expose events and draw itself
- animation can refresh itself

Note that it's a very bad idea to thread the UI code, because that will
make debugging any bugs you have MUCH harder.  If you want to use threads,
you should thread only well-isolated functionality (e.g. reading data
from a socket to a buffer) which interactions with the rest of the your
and libraries code you know very well (at least concerning the thread

	- Eero

More information about the maemo-developers mailing list