<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Giuseppe Coviello &#187; webkit</title>
	<atom:link href="http://osl.uniparthenope.it/people/cjg/tag/webkit/feed/" rel="self" type="application/rss+xml" />
	<link>http://osl.uniparthenope.it/people/cjg</link>
	<description>... from this day to the ending of the world, But we in it shall be remember&#039;d; We few, we happy few, we band of brothers; For he to-day that sheds his blood with me Shall be my brother ...</description>
	<lastBuildDate>Mon, 14 Jun 2010 17:58:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Writing a browser in three rows</title>
		<link>http://osl.uniparthenope.it/people/cjg/2009/02/writing-a-browser-in-three-rows/</link>
		<comments>http://osl.uniparthenope.it/people/cjg/2009/02/writing-a-browser-in-three-rows/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 18:39:43 +0000</pubDate>
		<dc:creator>cjg</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://cjg.cruxppc.org/?p=173</guid>
		<description><![CDATA[We reached a new record: writing a browser in three rows! After python I decided to test also WebKit bindings for ruby: [kaltura-widget wid="jr0a2p7nrk" width="410" height="364" addpermission="0" editpermission="3" /] And these are the three rows: require 'webkit' Gtk::Window.new&#40;&#41;.add&#40;wv = Gtk::WebKit::WebView.new&#41;.show_all Thread.new do Gtk.main end As you can see from the video to open a webpage you have to write wv.open(&#8220;URL&#8221;) to the irb prompt.]]></description>
			<content:encoded><![CDATA[<p>We reached a new record: writing a browser in three rows! After python I decided to test also WebKit bindings for ruby:</p>
<p>[kaltura-widget wid="jr0a2p7nrk" width="410" height="364" addpermission="0" editpermission="3" /]</p>
<p>And these are the three rows:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'webkit'</span>
<span style="color:#6666ff; font-weight:bold;">Gtk::Window</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">add</span><span style="color:#006600; font-weight:bold;">&#40;</span>wv = <span style="color:#6666ff; font-weight:bold;">Gtk::WebKit::WebView</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">show_all</span>
<span style="color:#CC00FF; font-weight:bold;">Thread</span>.<span style="color:#9900CC;">new</span> <span style="color:#9966CC; font-weight:bold;">do</span> Gtk.<span style="color:#9900CC;">main</span> <span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>As you can see from the video to open a webpage you have to write wv.open(&#8220;URL&#8221;) to the irb prompt.</p>
]]></content:encoded>
			<wfw:commentRss>http://osl.uniparthenope.it/people/cjg/2009/02/writing-a-browser-in-three-rows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing a browser in less than a minute</title>
		<link>http://osl.uniparthenope.it/people/cjg/2009/02/writing-a-browser-in-less-than-a-minute/</link>
		<comments>http://osl.uniparthenope.it/people/cjg/2009/02/writing-a-browser-in-less-than-a-minute/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 16:58:50 +0000</pubDate>
		<dc:creator>cjg</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://cjg.cruxppc.org/?p=162</guid>
		<description><![CDATA[I wanted just to test WebKit, but instead of getting a browser based on that project I decided to test directly the (gtk) widget using python and I was impressed how it is simple and fast embedding a full functional web browser in any kind of application! [kaltura-widget wid="vzjollzqgu" width="410" height="364" addpermission="0" editpermission="0" /] The source used in this video is (almost): import webkit import gtk &#160; wv = webkit.WebView&#40;&#41; w = gtk.Window&#40;&#41; w.add&#40;wv&#41; w.show_all&#40;&#41; wv.open&#40;&#34;http://cjg.cruxppc.org&#34;&#41; gtk.main&#40;&#41; If you can&#8217;t/wan&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted just to test <a href="http://webkit.org/">WebKit</a>, but instead of getting a browser based on that project I decided to test directly the (gtk) widget using python and I was impressed how it is simple and fast embedding a full functional web browser in any kind of application!</p>
<p>[kaltura-widget wid="vzjollzqgu" width="410" height="364" addpermission="0" editpermission="0" /]</p>
<p>The source used in this video is (almost):</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">import</span> webkit
<span style="color: #ff7700;font-weight:bold;">import</span> gtk
&nbsp;
wv = webkit.<span style="color: black;">WebView</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
w = gtk.<span style="color: black;">Window</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
w.<span style="color: black;">add</span><span style="color: black;">&#40;</span>wv<span style="color: black;">&#41;</span>
w.<span style="color: black;">show_all</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
wv.<span style="color: #008000;">open</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;http://cjg.cruxppc.org&quot;</span><span style="color: black;">&#41;</span>
gtk.<span style="color: black;">main</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></div></div>

<p>If you can&#8217;t/wan&#8217;t use any flash player you can download and watch the video from: <a href="http://cruxppc.org/~cjg/minute_browser.ogg">Writing a browser in less than a minute</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://osl.uniparthenope.it/people/cjg/2009/02/writing-a-browser-in-less-than-a-minute/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
