Author: dmeyer
Date: Wed May  3 19:23:12 2006
New Revision: 1534

Added:
   trunk/canvas/BUGS
Modified:
   trunk/canvas/src/container.py
   trunk/canvas/src/object.py
   trunk/canvas/src/text.py

Log:
add BUGS file

Added: trunk/canvas/BUGS
==============================================================================
--- (empty file)
+++ trunk/canvas/BUGS   Wed May  3 19:23:12 2006
@@ -0,0 +1,5 @@
+Removing and adding the same object in a container in the same step
+doesn't show the object.
+
+Object._get_intrinsic_size gets no argument (except self) but is
+called around line 229 of the same file with child_asking.

Modified: trunk/canvas/src/container.py
==============================================================================
--- trunk/canvas/src/container.py       (original)
+++ trunk/canvas/src/container.py       Wed May  3 19:23:12 2006
@@ -458,6 +458,14 @@
         return True
 
 
+    def wipe(self):
+        """
+        Delete all children.
+        """
+        for c in self._children[:]:
+            self.remove_child(c)
+
+            
     def kidnap(self, child):
         """
         Forces a child to be added even if it's adopted by another parent.

Modified: trunk/canvas/src/object.py
==============================================================================
--- trunk/canvas/src/object.py  (original)
+++ trunk/canvas/src/object.py  Wed May  3 19:23:12 2006
@@ -229,7 +229,7 @@
 
         for index in range(2):
             if size[index] == "auto":
-                size[index] = self._get_intrinsic_size(child_asking)[index]
+                size[index] = self._get_intrinsic_size()[index]
             else:
                 size[index] = self._compute_relative_value(size[index], 
extents[index])
 

Modified: trunk/canvas/src/text.py
==============================================================================
--- trunk/canvas/src/text.py    (original)
+++ trunk/canvas/src/text.py    Wed May  3 19:23:12 2006
@@ -134,8 +134,6 @@
         diff = target_height * 0.5 / metrics[1]
 
         font = imlib2.load_font(font_name, target_height * diff)
-        #metrics = font.get_text_size(self["text"])
-
         return target_height * diff
 
 


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to