Ruby WebKit

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-testrb-1.png

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.

Comments

Leave a Reply




  • About

    Daniel Lucraft, London, UK. Interested in Ruby, Prolog and software.