On Thu, 12 Jul 2001 17:50:38 -0400
[EMAIL PROTECTED] wrote:

> >I'm looking at how to write LAGGA clients, the command line one is pretty
> >straightforward, but what if I want to use GTK (say)?
> 
> in the sample client, there is:
> 
>    main () {
> 
>          laaga_client_t = laaga_open ("myname");
>          ... setup laaga ...
>          laaga_activate (client);
>          sleep (N);
>          laaga_close (client);
>    }
> 
> for GTK:
> 
>    main () {
> 
>          ...setup GTK...
>          laaga_client_t = laaga_open ("myname");
>          ... setup laaga ...
>          laaga_activate (client);
>          gtk_run ();
>          laaga_close (client);
>    }

Paul, I am trying to use FLTK instead of GTK, but I don't get it to work...
It crashed inside X11 functions. I have seen this before, and it always
was related to multithreading and FLTK not being threadsafe, but I don't
understand how that could be a problem, since I run all fltk stuff in the
main thread. 

main()
{
        ... setup fltk, e.g Fl_Window w(200,200); w.show();
        laaga_client_t = laaga_open ("myname");
        ... setup laaga ...
        laaga_activate (client);
        Fl::run ();
        laaga_close (client);
}

Any suggestions?

Maarten

Reply via email to