Re: GTK window and thread
- From: stian nixia no
- To: "Frederic Beck" <frederic beck loria fr>
- Cc: gtk-app-devel <gtk-app-devel-list gnome org>, gtk <gtk-list gnome org>
- Subject: Re: GTK window and thread
- Date: Mon, 2 May 2005 16:15:47 +0200 (CEST)
> (<unknown>:20080): GLib-WARNING **: g_main_context_check() called
> recursively from within a source's check() or prepare() member.
>
> (<unknown>:20080): GLib-WARNING **: g_main_context_prepare() called
> recursively from within a source's check() or prepare() member.
Read the thread section of the gtk api and the usage of
gdk_threads_enter() and gdk_threads_leave() and that you have to init
gthreads BEFORE gtk.
Another approach could be not to init gtk in the main-program, but when an
event occure, fork, and let the child do some logging, init gtk, popup a
window, and when window close, just let the child die.
Stian Skjelstad
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]