danlucraft /blog

Ruby WebKit

April 2008 • Daniel Lucraft

Update: These bindings are now pretty usable. See here

This morning I started working on some Ruby bindings for WebKit on GTK. I’ve only been working on them for an hour or so but they can already do this:

require 'src/lib/webkit'

win = Gtk::Window.new
wv = Gtk::WebKit::WebView.new
win.add(wv)
win.show_all
wv.open('http://www.google.com')
Gtk.main

to get this:

screenshot

The Ruby-Gnome2 team have done a fantastic job of making it easy to write Ruby to GTK bindings. I hope to make good progress on these tomorrow.

blog comments powered by Disqus