<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.developerfriendly.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>WidgetRunner</title>
 <link>http://www.developerfriendly.com/taxonomy/term/26</link>
 <description>The taxonomy view with a depth of 0.</description>
 <language>en</language>
<item>
 <title>Much Awesomeness</title>
 <link>http://www.developerfriendly.com/blog/awesomeness</link>
 <description>I have recently discovered a couple of &lt;em&gt;awesome&lt;/em&gt; developments which are worth mentioning:

&lt;ul&gt;
 &lt;li&gt; The &lt;a href=&#039;http://awesome.naquadah.org/&#039;&gt;Awesome &lt;em&gt;X Window Manager&lt;/em&gt;&lt;/a&gt; is an active light-weight tiling window manager based on dwm. Similar to wmii or ion but seemingly more advanced and very easy to use. Version 2 is available from Debian and Ubuntu repositories so you can simply &lt;em&gt;apt-get install awesome&lt;/em&gt; ... now isn&#039;t that awesome?&lt;/li&gt;

 &lt;li&gt;
  Google has released an official version of &lt;a href=&quot;http://code.google.com/p/google-gadgets-for-linux/&quot;&gt;Google Gadgets for Linux&lt;/a&gt;. It&#039;s still early in development but the code is open source (Under the terms of the Apache License v2.0)... They don&#039;t offer pre-packaged binaries, however, it looks reasonably easy to build it. Once I have a few minutes to play I will definitely be talking about the experience. This is especially exciting for me because it&#039;s similar to the WidgetRunner project that I dabbled with over a year ago. The &lt;a href=&quot;http://code.google.com/p/google-gadgets-for-linux/wiki/HowToBuild&quot;&gt;documentation&lt;/a&gt; mentions XULRunner and Spidermonkey as dependencies so it seems like it&#039;s based on the Mozilla platform and &lt;em&gt;that&lt;/em&gt; is awesome!
 &lt;/li&gt;
&lt;/ul&gt;</description>
 <comments>http://www.developerfriendly.com/blog/awesomeness#comments</comments>
 <category domain="http://www.developerfriendly.com/taxonomy/term/60">Awesome</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/45">linux</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/1">mozpad</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/26">WidgetRunner</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/8">XULRunner</category>
 <pubDate>Wed, 30 Jul 2008 17:22:24 -0500</pubDate>
 <dc:creator>20after4</dc:creator>
 <guid isPermaLink="false">63 at http://www.developerfriendly.com</guid>
</item>
<item>
 <title>Dragging widgets (Undecorated XUL windows)</title>
 <link>http://www.developerfriendly.com/node/28</link>
 <description>&lt;br/&gt;
The following is a simple bit of code that can make a borderless window dragable, currently tested only on Linux.
 
While this may not be needed in most X Windows Managers (due to alt-click dragability) it&#039;s still an important part of any desktop widget runtime. In WidgetRunner you can simply include this JavaScript file to provide the functionality automatically.
&lt;!--break--&gt;
&lt;code&gt;&lt;pre&gt;
/* widget.js - shared code used in all widgets.
*/

window.addEventListener(&quot;load&quot;, startup, false);
var widgetRunner= window.opener.widgetRinner;

function startup() {
	
	window.opener.widgetLoaded(window);
	if (loadWidget) {
		loadWidget();
	}


	var startPos=0;
	var mouseDown = function(event) {
		startPos = [ event.clientX, event.clientY];

	}
	
	var mouseMove = function(event) {
		if (startPos != 0) {
			var newX = event.screenX-startPos[0];
			var newY = event.screenY-startPos[1];
			window.moveTo(newX,newY);
		}
	}
	
	var mouseUp = function(event) {
		startPos=0;
	}

	window.addEventListener(&quot;mousedown&quot;,mouseDown, false);
	window.addEventListener(&quot;mouseup&quot;,mouseUp, false);
	window.addEventListener(&quot;mousemove&quot;,mouseMove, false);
}
&lt;/pre&gt;&lt;/code&gt;

I have published a stripped down version of this code as an example on the Mozilla Developer Connection wiki.  That document is here: &lt;a href=&quot;http://developer.mozilla.org/en/docs/Code_snippets:Windows#Draggable_windows&quot;&gt;Code_snippets:Windows#Draggable_windows&lt;/a&gt;</description>
 <comments>http://www.developerfriendly.com/node/28#comments</comments>
 <category domain="http://www.developerfriendly.com/taxonomy/term/17">JavaScript</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/1">mozpad</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/26">WidgetRunner</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/16">XUL</category>
 <pubDate>Mon, 30 Jul 2007 02:19:00 -0500</pubDate>
 <dc:creator>20after4</dc:creator>
 <guid isPermaLink="false">28 at http://www.developerfriendly.com</guid>
</item>
<item>
 <title>WidgetRunner</title>
 <link>http://www.developerfriendly.com/projects/WidgetRunner</link>
 <description>WidgetRunner is an open source Desktop Widget platform based on XULRunner. The project aims to create a platform for Desktop Widgets similar to Apple&#039;s Dashboard and Yahoo&#039;s Konfabulator.
&lt;!--break--&gt;

&lt;h2&gt;This Project is Obsolete&lt;/h2&gt;

&lt;strong&gt;It&#039;s been a while since I worked on this project.&lt;/strong&gt; If you like the idea of a widget engine based on XULRunner then you might want to take a look at the recently released &lt;a href=&quot;http://code.google.com/p/google-gadgets-for-linux&quot;&gt;Google Gadgets for Linux&lt;/a&gt; - an open source project that seems to be based on XULRunner. Unlike WidgetRunner, google gadgets will have a lot of visibility and interest due to being an official google project. I strongly suggest that you take a look over their rather than spending time on this obsolete experiment of mine.

&lt;h2&gt;Screenshots&lt;/h2&gt;

&lt;h3&gt;WidgetRunner with the Foxkeh Clock Extension:&lt;/h3&gt;
&lt;img src=&quot;http://www.developerfriendly.com/files/nodeimage/1/6913edf3b8b0789c3a4ea1d8ca30792f.png&quot;/&gt;

&lt;h2&gt;Source&lt;/h2&gt;
&lt;p&gt;Source code is now in the SVN repository provided by Google Code.  You can visit the google code &lt;a href=&quot;http://code.google.com/p/developerfriendly&quot;&gt;project page&lt;/a&gt; or go directly to the &lt;a href=&quot;http://developerfriendly.googlecode.com/svn/trunk/mozilla/xulrunner/widget-runner/&quot;&gt;svn repository&lt;/a&gt;.

&lt;/p&gt;

&lt;h2&gt;Bugs&lt;/h2&gt;
&lt;ul&gt;
 &lt;li&gt;Alpha-transparency isn&#039;t working on Linux. See screenshot above - the edge of the icon looks jagged.&lt;/li&gt;
&lt;/ul&gt;
</description>
 <comments>http://www.developerfriendly.com/projects/WidgetRunner#comments</comments>
 <category domain="http://www.developerfriendly.com/taxonomy/term/26">WidgetRunner</category>
 <enclosure url="http://www.developerfriendly.com/files/widget-runner.tar.gz" length="30289" type="application/x-gzip" />
 <pubDate>Tue, 24 Jul 2007 20:02:29 -0500</pubDate>
 <dc:creator>20after4</dc:creator>
 <guid isPermaLink="false">26 at http://www.developerfriendly.com</guid>
</item>
<item>
 <title>Borderless XUL windows</title>
 <link>http://www.developerfriendly.com/node/25</link>
 <description>So I&#039;m trying to make borderless desktop widgets with XULRunner. It&#039;s mostly working except for one strange limitation - I can&#039;t seem to get the windows to resize to less than 100px in height. If anyone has a clue how to make an XUL window that is smaller than 100px high, please let me know, I&#039;m stumped.

&lt;strong&gt;Update:&lt;/strong&gt; I finally got it to work! This involved a combination of omitting width and height attributes from the xul window tag and then calling window.sizeToContent() in the window&#039;s load event handler.

&lt;p&gt;&lt;strong&gt;Update #2:&lt;/strong&gt; now I have round, borderless xul windows on linux, however, I don&#039;t have alpha blending.  The alpha channel on my PNG icon seems to be ignored, see screenshot...</description>
 <comments>http://www.developerfriendly.com/node/25#comments</comments>
 <category domain="http://www.developerfriendly.com/taxonomy/term/26">WidgetRunner</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/8">XULRunner</category>
 <pubDate>Tue, 24 Jul 2007 05:56:51 -0500</pubDate>
 <dc:creator>20after4</dc:creator>
 <guid isPermaLink="false">25 at http://www.developerfriendly.com</guid>
</item>
</channel>
</rss>
