On 03/10/06, Tristan Van Berkom <tvb@xxxxxxxxx> wrote:
I thought that a GMainContext would keep the "main loop code".... a data structure holding pointers to the functions or something... I guess these can be include g_source_add or g_timeout_add as I am currently doing... which yes they wouldnt be passed if a GMainLoop was running into another thread... Thanks again for your reply.
Yiannis wrote:
> Hi,
>
> I am trying to understand the use of GMainContext.... Are there any
> examples
> somewhere??
You typically dont need to create one ever - unless you want
to run a GMainLoop in a seperate thread - you'd need a context
for that thread.
I thought that a GMainContext would keep the "main loop code".... a data structure holding pointers to the functions or something... I guess these can be include g_source_add or g_timeout_add as I am currently doing... which yes they wouldnt be passed if a GMainLoop was running into another thread... Thanks again for your reply.
--
-- Yiannis
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list