Re: A question about threads



In your callback , try to use g_thread_create.


在 星期一 11 十二月 2006 18:13,Paolo Franzetti 写道:
Hi.

I would like to put in a GTK application a button which is
"connected" to a function that performs a very long computational
task which do not freezes the application.

In other word I would like to press the button and start the computation
that should work "in the background" while the main window and all the
other widgets continue to work.

I guess I should use "threads", and I have tried to do in many different
ways but my application always freezes.

Can anyone give me some hints or some piece of code that works?

Thank you very much,
Paolo
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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