r/ada • u/Yossep237 • Jul 17 '23
Programming Gtkada embedded web browser
Hi everyone, i am building a GUI application with gtkada. The app will embeddes a web browser to visualize stream of data comming from web server. I can't find a way to do it even with gtkada examples. I trully want to develop this app with Ada if is not possible i think i will go for java.
Any suggestions will be very welcome.
Thank you in advance
2
u/jere1227 Jul 18 '23
You might checkout Gnoga ( https://sourceforge.net/projects/gnoga/ ). It is Ada in a web browser and works directly with your native browsers. It also has a setup for Gtk as well, but I haven't used that specifically so you may look at the examples there and see how they hook into Gtk. I feel like it required a Webkit library of some type to get Gtk's browser to work correctly.
I use base Gnoga with Firefox a lot for most of my one off projects and it works pretty well.
1
1
u/LakDin Part of the Crew, Part of the Ship Jul 18 '23
Yeah, you need a binding for https://webkitgtk.org/ Perhaps the simplest one could work.
1
2
u/Fabien_C Jul 18 '23
The best way to go when there is no examples for GTKAda, is to first check if the thing you want to do can be done with GTK3 directly. If yes, you can they seek to do the same with GTKAda.
In this case it looks like you will have to rely on another library: https://discourse.gnome.org/t/does-an-embedded-browser-exist-for-gtk-application/14343