[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: gthreads and gtk+?
- From: Olexiy Avramchenko <olexiy irtech cn ua>
- To: jonv0 lycos com
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gthreads and gtk+?
- Date: Fri, 25 Apr 2003 09:57:05 +0300
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]