Author: toshok
Date: 2007-06-28 14:33:21 -0400 (Thu, 28 Jun 2007)
New Revision: 80987

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/canvas.cpp
   trunk/moon/src/collection.cpp
Log:
2007-06-28  Chris Toshok  <[EMAIL PROTECTED]>

        * canvas.cpp (Canvas::ComputeBounds): fix the debug printf's.

        * collection.cpp (VisualCollectoin::Clear): update the panel's
        bounds after the clear so we redraw everything.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-06-28 18:30:41 UTC (rev 80986)
+++ trunk/moon/src/ChangeLog    2007-06-28 18:33:21 UTC (rev 80987)
@@ -1,3 +1,10 @@
+2007-06-28  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * canvas.cpp (Canvas::ComputeBounds): fix the debug printf's.
+
+       * collection.cpp (VisualCollectoin::Clear): update the panel's
+       bounds after the clear so we redraw everything.
+
 2007-06-27  Chris Toshok  <[EMAIL PROTECTED]>
 
        * uielement.h: stop using x1,y1,x2,y2 for bounds, use a Rect

Modified: trunk/moon/src/canvas.cpp
===================================================================
--- trunk/moon/src/canvas.cpp   2007-06-28 18:30:41 UTC (rev 80986)
+++ trunk/moon/src/canvas.cpp   2007-06-28 18:33:21 UTC (rev 80987)
@@ -94,7 +94,7 @@
 #if DEBUG_BOUNDS
                levelb += 4;
                space (levelb);
-               printf ("Canvas: Enter GetBounds\n");
+               printf ("Canvas: Enter ComputeBounds\n");
 #endif
                cn = (Collection::Node *) children->list->First ();
                for ( ; cn != NULL; cn = (Collection::Node *) cn->Next ()) {
@@ -139,7 +139,7 @@
        }
 #if DEBUG_BOUNDS
        space (levelb);
-       printf ("Canvas: Leave GetBounds (%g %g %g %g)\n", bounds.x, bounds.y, 
bounds.w, bounds.h);
+       printf ("Canvas: Leave ComputeBounds (%g %g %g %g)\n", bounds.x, 
bounds.y, bounds.w, bounds.h);
        levelb -= 4;
 #endif
 }

Modified: trunk/moon/src/collection.cpp
===================================================================
--- trunk/moon/src/collection.cpp       2007-06-28 18:30:41 UTC (rev 80986)
+++ trunk/moon/src/collection.cpp       2007-06-28 18:33:21 UTC (rev 80987)
@@ -389,8 +389,12 @@
 void
 VisualCollection::Clear ()
 {
+       Panel *panel = (Panel *) closure;
+
        z_sorted_list->Clear (true);
        Collection::Clear ();
+
+       panel->UpdateBounds ();
 }
 
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to