[gtkada] Creating a Window from a task

Dominique Canazzi dominique.canazzi at wanadoo.fr
Fri Dec 6 19:26:53 CET 2002


As far as I can remember, any other task can create a window and its
chid widgets (and modify them), as long as the event loop is in the main task.
Do not forget to protect your Gui operations with the GTK semaphore.

This constraint on the event loop leads to ugly design schemes, so if
anybody has an idea about how to dispatch UI events to other tasks, ...

Regards,

-- dc.


>Messsage du 06/12/2002 14:51
>De :  <gtkada at lists.act-europe.fr>
>A :  <gtkada at lists.act-europe.fr>
>Copie à : 
>Objet : Re: [gtkada] Creating a Window from a task  
>
> Dominique Canazzi <dominique.canazzi at wanadoo.fr> wrote on 06/12/2002 (14:48) :
> > Klokka works on Windows because both window creation and
> > event loop are in the main task.
> > 
> > The problem is Windows-specific.
> 
> I see, because I was experimenting a year ago with a program that had
> the main loop in the main task, but the creation of the windows was not
> done in advance like Klokka. But I never compiled it on Windows as I
> didn't finish the program.
> 
> Have you tired to only put the Gtk loop in the main loop and do the
> window creation in another loop?
> -- 
> Preben Randhol ------------------- http://www.pvv.org/~randhol/ --
>                  «For me, Ada95 puts back the joy in programming.»
> 
> _______________________________________________
> gtkada mailing list
> gtkada at lists.act-europe.fr
> http://lists.act-europe.fr/mailman/listinfo/gtkada
> 





More information about the gtkada mailing list