-
-
Save dockimbel/1326101 to your computer and use it in GitHub Desktop.
Red/System [ | |
Title: "Lazy Sunday Afternoon Browser" | |
Author: "Kaj de Vos" | |
] | |
#include %GTK-WebKit.reds | |
home: "http://www.red-lang.org/" | |
address: function [ | |
[cdecl] | |
widget [gtk-entry!] | |
data [gtk-scrolled-window!] | |
][ | |
web-browse web-get-view data gtk-get-entry-text widget | |
] | |
browser: browse home | |
gtk-view window [ | |
gtk-position-center | |
"Lazy Sunday Afternoon Browser" | |
vbox [ | |
field [home :address browser] gtk-tight | |
browser gtk-full | |
] | |
] |
I tried to get it working on Windows but it needs libgstbase-0.10-0.dll. Any ideas where I can find that one?
Those are the GStreamer base plug-ins. The binding doesn't use them directly, but it's a dependency of WebKit. I don't know how WebKit is compiled on Windows, but if it has that dependency, GStreamer must be available, too.
Short of installing the complete GStreamer system, I cannot lay my hands on the libgstbase dll. In any case, more dependencies might surface if I were to install this single .dll. It all looks like a huge machinery to do a simple (?) thing, at least a thing that can be described in a few lines of code.
Yep, a web browser engine is a huge machinery, alas. At least on most Linux and probably BSD systems, the system supports installing them or has it all preinstalled already.
However, I do think you can pick just that one library out of the GStreamer distribution.
Kaj posted the first public version of the binding today at: http://red.esperconsultancy.nl/Red-GTK-WebKit