It is a good question.  The threading in Gnoga doesn't affect the gtk app
since the only interaction is via a websocket. Effectively the gtkapp
remains in a single thread context the entire run. Later I do plan on a
direct API connection but the plan will be using a messaging queue to
maintain the gtkapp in a single thread context.

David Botton
 On Jan 10, 2015 1:40 AM, "Jeremiah Breeden" <jeremiah.bree...@gmail.com>
wrote:

> This is a bit late, so I apologize, but I wanted to check:
>
> I am not familiar with GTK's inner workings, but it does mention having
> trouble with threads in Windows and suggests keeping all Gui interactions
> in a single thread.  Will that be an issue with the Gnoga in GTK
> configuration since each event can be spawned in a different task/thread?
> This might be a silly question, but was curious.
>
> On Sun, Dec 14, 2014 at 5:05 PM, Rabbi David Botton <da...@botton.com>
> wrote:
>
>> I have added support for native Gtk Apps now with Gnoga :)
>>
>> Directions:
>>
>> Make sure you have installed WebKit2Gtk and Gtk-3.0
>>
>> sudo apt-get install libwebkit2gtk-3.0-dev
>> sudo apt-get install libgtk-3-dev
>>
>> Create the native support in Gnoga:
>>
>> make native_gtk
>>
>> 1. Create a singleton app as usual
>>
>> 2. Initialize the the Gtk front end:
>>
>>    Gnoga.Application.Gtk_Window.Initialize (Port   => 8080,
>>                                             Width  => 800,
>>                                             Height => 600);
>>
>> 3. Start your application with Verbose set to False to avoid seeing start
>> up information:
>>
>>    Gnoga.Application.Singleton.Initialize (Main_Window => M, Verbose =>
>> False);
>>
>> Build your app as usual and it will now use the Gtk front end.
>>
>> David Botton
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Gnoga-list mailing list
>> Gnoga-list@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>>
>>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> Gnoga-list mailing list
> Gnoga-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list

Reply via email to