comp.lang.ada
 help / color / mirror / Atom feed
From: David Botton <david@botton.com>
Subject: Native Gtk App with Gnoga
Date: Sun, 14 Dec 2014 14:07:28 -0800 (PST)
Date: 2014-12-14T14:07:28-08:00	[thread overview]
Message-ID: <e3ee1381-06f3-4730-b5a0-9b65588faa24@googlegroups.com> (raw)

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.

I will be improving on this over time and post 1.0 I'll allow direct connection with WebKit3Gtk with no need for sockets for increased speed, etc.

David Botton

                 reply	other threads:[~2014-12-14 22:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox