Openismus, Clutter Tutorial and Tool Palette

June 1st 2008 – 20:11

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 the current unstable development version of Clutter. I never used Clutter before but it is a really nice library and the tutorial helps a lot to understand Clutter concepts like Timelines and Behaviours. (Patch to update the examples).

Tool Palette

There is a generic tool palette container developed by Openismus. I continued Mathias’ 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:

There is a bug open in GTK+ which allows to use some additional layout options for tool items. It would allow something like an enhanced BOTH_HORIZ style:

or vertical, aligned text in the TEXT style:

The EggToolPalette is already usable. The source code is avaiable: svn co http://svn.gnome.org/svn/libegg/trunk libegg

Viewvc: http://svn.gnome.org/viewvc/libegg/trunk/libegg/toolpalette/

Use

  • egg_tool_palette_new () to create a new tool palette
  • egg_tool_item_group_new (”Name”) to create a named item group
  • gtk_container_add (GTK_CONTAINER (palette), group) to insert the item group into the palette
  • and egg_tool_item_group_insert (EGG_TOOL_ITEM_GROUP (group), item, -1) to insert a GtkToolItem into the item group

The testtoolpalette.c example shows some more features (like drag and drop support).

  1. 1 Trackback(s)

  2. Jun 19, 2008: Jan Arne Petersen’s Blog » Blog Archive » Clutter Tutorial

Post a Comment