Skip to content

Instantly share code, notes, and snippets.

@dockimbel
Created October 30, 2011 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dockimbel/1326101 to your computer and use it in GitHub Desktop.
Save dockimbel/1326101 to your computer and use it in GitHub Desktop.
Webkit-based browser by Kaj de Vos
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
]
]
@meijeru
Copy link

meijeru commented Nov 1, 2011

This is very exciting, but where is %GTK-WebKit.reds to be found???

@dockimbel
Copy link
Author

It has not been publicly released yet, you need to ask Kaj for it.

@Kaj-de-Vos
Copy link

It's a new binding that I started working on the same day I wrote the browser on top if it. I'll put it in a Fossil repository like the other bindings, but it'll take me a few days to clean it up, as I like to clay new projects out of a previous one that resembles it. Anyway, it's very small and minimal so far.

@meijeru
Copy link

meijeru commented Nov 13, 2011

Any progress on publishing the cleaned-up version?

@Kaj-de-Vos
Copy link

Sorry, I nuked my Linux installation, so I'm occupied with restoring that. I think I will get back to the bindings end of this week.

@meijeru
Copy link

meijeru commented Nov 14, 2011

Good luck to you, then!

@meijeru
Copy link

meijeru commented Nov 28, 2011

Did you in fact have any luck with reviving your Linux?

@dockimbel
Copy link
Author

Kaj posted the first public version of the binding today at: http://red.esperconsultancy.nl/Red-GTK-WebKit

@meijeru
Copy link

meijeru commented Nov 30, 2011

I tried to get it working on Windows but it needs libgstbase-0.10-0.dll. Any ideas where I can find that one?

@Kaj-de-Vos
Copy link

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.

@meijeru
Copy link

meijeru commented Nov 30, 2011

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.

@Kaj-de-Vos
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment