ooops!
i found out that there was a little flaw im my patch of the tree-demo.
please use this patch instead (my flaw was, i was asigning _iconObject instead of the public function getIconObject

Sorry


Olli
Index: source/demo/example/Tree_1.html
===================================================================
RCS file: /cvsroot/qooxdoo/qooxdoo/source/demo/example/Tree_1.html,v
retrieving revision 1.2
diff -u -r1.2 Tree_1.html
--- source/demo/example/Tree_1.html     17 Feb 2006 11:45:02 -0000      1.2
+++ source/demo/example/Tree_1.html     18 Feb 2006 19:41:23 -0000
@@ -17,7 +17,21 @@
   <script type="text/javascript">
     window.application.main = function()
     {
+      theme.registerAppearance("tree-folder-desktop",
+      {
+        initial : function(vWidget, vTheme)
+        {
+          return {
+            width : 16,
+            height : 16,
+            source : "icons/16/home.png"
+          };
+        }
+      });
+
       var t = new QxTree("Root");
+      t.getIconObject().setAppearance("tree-folder-desktop");
+      
 
       with(t)
       {

Reply via email to