Re: gthreads and gtk+?



it s big wrote:

Hi,

 I'm not to fimilar with gthreads at so I might have this totaly wrong so any help at all is more then good 
enough. Here is what I got: example

main (gint argc, gchar *argv[])
{

 g_thread (NULL);

Use g_thread_init() instead of call above.
You have to read this:
http://developer.gnome.org/doc/API/2.0/glib/glib-Threads.html


 gtk_init(&argc, &argv);

 gtk_main ();

The type of your main defaults to 'int', so you have to specify return value (at least for shutting up the "C" compiler):
       return 0;


}






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