Re: Help Newbie cause updates of Notebook with textview



> but got the complaint (DUH) "GLIB-WARNING: g_main_context_prepare(): main
> loop already active in another thread"
> which makes sense, since this call of UpdateDisplay() is on the thread of
> my external application.

Please read the thread section of the gtk api spec / documentation and the
usage of gdk_thread_enter() and gdk_thread_leave(). Callbacks from glib
needs to use these (signals from gtk widgets are already holding this
lock)


Stian Skjelstad



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