<?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>Jan Arne Petersen&#039;s Blog &#187; ToolPalette</title>
	<atom:link href="http://blog.jpetersen.org/tag/toolpalette/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jpetersen.org</link>
	<description></description>
	<lastBuildDate>Wed, 25 Jan 2012 14:28:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Openismus, Clutter Tutorial and Tool Palette</title>
		<link>http://blog.jpetersen.org/2008/06/01/openismus-clutter-tutorial-and-tool-palette/</link>
		<comments>http://blog.jpetersen.org/2008/06/01/openismus-clutter-tutorial-and-tool-palette/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 18:11:28 +0000</pubDate>
		<dc:creator>jpetersen</dc:creator>
				<category><![CDATA[Default]]></category>
		<category><![CDATA[Clutter]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[GTK+]]></category>
		<category><![CDATA[Openismus]]></category>
		<category><![CDATA[ToolPalette]]></category>

		<guid isPermaLink="false">http://blog.jpetersen.org/?p=14</guid>
		<description><![CDATA[As announced by Murray I have started working at Openismus. Two of the tasks I did in the first week: Clutter Tutorial I updated the source code examples of the Clutter tutorial written by Murray to make them run with &#8230; <a href="http://blog.jpetersen.org/2008/06/01/openismus-clutter-tutorial-and-tool-palette/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As <a href="http://www.murrayc.com/blog/permalink/2008/05/21/jan-arne-petersen/">announced by Murray</a> I have started working at <a href="http://www.openismus.com">Openismus</a>. Two of the tasks I did in the first week:</p>
<p><strong>Clutter Tutorial</strong></p>
<p>I updated the source code examples of the <a href="http://www.openismus.com/misc/clutter_tutorial/docs/tutorial/html/index.html">Clutter tutorial</a> written by Murray to make them run with the current unstable development version of <a href="http://clutter-project.org/">Clutter</a>. I never used Clutter before but it is a really nice library and the tutorial helps a lot to understand Clutter concepts like <a href="http://www.openismus.com/misc/clutter_tutorial/docs/tutorial/html/ch05.html">Timelines</a> and <a href="http://www.openismus.com/misc/clutter_tutorial/docs/tutorial/html/ch07.html">Behaviours</a>. (<a href="http://bugzilla.o-hand.com/show_bug.cgi?id=934">Patch</a> to update the examples).</p>
<p><strong>Tool Palette</strong></p>
<p>There is a generic tool palette container developed by Openismus. I continued <a href="http://taschenorakel.de/mathias/">Mathias&#8217;</a> work by adding new features such as support for scroll to group (show as much items of a group as possible when expanding) or RTL language support:</p>
<p><a href="http://www.jpetersen.org/blog/wp-content/uploads/2008/06/toolpalette-horizontal-ltr11.png"><img class="alignnone size-medium wp-image-16" title="Horizonal Tool Palette (LTR)" src="http://www.jpetersen.org/blog/wp-content/uploads/2008/06/toolpalette-horizontal-ltr1-300x169.png" alt="" width="300" height="169" /></a></p>
<p><a href="http://www.jpetersen.org/blog/wp-content/uploads/2008/06/toolpalette-horizontal-rtl11.png"><img class="alignnone size-medium wp-image-17" title="Horizonal Tool Palette (RTL)" src="http://www.jpetersen.org/blog/wp-content/uploads/2008/06/toolpalette-horizontal-rtl1-300x181.png" alt="" width="300" height="181" /></a></p>
<p>There is a <a href="http://bugzilla.gnome.org/show_bug.cgi?id=535090">bug</a> open in GTK+ which allows to use some additional layout options for tool items. It would allow something like an enhanced BOTH_HORIZ style:</p>
<p><a href="http://www.jpetersen.org/blog/wp-content/uploads/2008/06/toolpalette-horizontal-both-horiz11.png"><img class="alignnone size-medium wp-image-18" title="Horizontal Tool Palette, BOTH_HORIZ style (enhanced)" src="http://www.jpetersen.org/blog/wp-content/uploads/2008/06/toolpalette-horizontal-both-horiz1-300x146.png" alt="" width="300" height="146" /></a></p>
<p>or vertical, aligned text in the TEXT style:</p>
<p><a href="http://www.jpetersen.org/blog/wp-content/uploads/2008/06/toolpalette-horizontal-text-rtl11.png"><img class="alignnone size-medium wp-image-19" title="Horizontal Tool Palette, TEXT style (enhanced, RTL)" src="http://www.jpetersen.org/blog/wp-content/uploads/2008/06/toolpalette-horizontal-text-rtl1-300x179.png" alt="" width="300" height="179" /></a></p>
<p>The EggToolPalette is already usable. The source code is avaiable: svn co <a href="http://svn.gnome.org/viewvc/libegg/trunk/">http://svn.gnome.org/svn/libegg/trunk</a> libegg</p>
<p>Viewvc: <a href="http://svn.gnome.org/viewvc/libegg/trunk/libegg/toolpalette/">http://svn.gnome.org/viewvc/libegg/trunk/libegg/toolpalette/</a></p>
<p>Use</p>
<ul>
<li><em>egg_tool_palette_new ()</em> to create a new tool palette</li>
<li><em>egg_tool_item_group_new (&#8220;Name&#8221;)</em> to create a named item group</li>
<li><em>gtk_container_add (GTK_CONTAINER (palette), group) </em>to insert the item group into the palette</li>
<li>and <em>egg_tool_item_group_insert (EGG_TOOL_ITEM_GROUP (group), item, -1)</em> to insert a <em>GtkToolItem</em> into the item group</li>
</ul>
<p>The <a href="http://svn.gnome.org/svn/libegg/trunk/libegg/toolpalette/testtoolpalette.c">testtoolpalette.c</a> example shows some more features (like drag and drop support).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jpetersen.org/2008/06/01/openismus-clutter-tutorial-and-tool-palette/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

