Re: initial code execution after gtk_main() ?



On Wed, 2004-12-08 at 15:45 -0500, Tristan Van Berkom wrote:


my gtk app should execute some code (do something in my gtkimage) right
after the program is launched and the main window is shown but without
the need of any user interaction (like a button click).

Is there a way to do that?
Maybe somehow with threads only?

g_idle_add();

        With the handler you add returning FALSE when it's run the first time,
so it gets removed after that one execution.










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