diff mde/gui/widget/layout.d @ 174:3d58adc17d20

Temporary commit to allow backup
author Diggory Hardy <diggory.hardy@gmail.com>
date Mon, 31 Aug 2009 13:54:23 +0200
parents 0dd49f333189
children 1cbde9807293
line wrap: on
line diff
--- a/mde/gui/widget/layout.d	Sat Aug 08 15:53:10 2009 +0200
+++ b/mde/gui/widget/layout.d	Mon Aug 31 13:54:23 2009 +0200
@@ -129,7 +129,7 @@
 	logger.warn ("ContentListWidget: resetting content is not yet supported");
     }
     
-    override bool dropContent (IContent content) {
+    public override bool dropContent (IContent content) {
 	if (cList.set (content))
 	    return true;
 	return parent.dropContent (content);
@@ -363,7 +363,7 @@
             mgr.renderer.drawSpacers (x,y, w,h, col.pos[1..$], row.pos[1..$]);
     }
     
-package:
+private:
     /* Calculations which need to be run whenever a new sub-widget structure is set
      * or other changes affecting widget sizes. Most of these need to happen regardless of whether
      * changes have occurred, since AlignColumns have been reset.
@@ -439,7 +439,6 @@
         }
     }
     
-private:
     override void setColWidth (size_t i, wdim w, int dir) {
         for (size_t j = 0; j < rows; ++j) {
             subWidgets[i + cols*j].setWidth (w, dir);
@@ -909,7 +908,7 @@
     alias IParentWidget.SIZABILITY SIZABILITY;
     alias IParentWidget.SIZABILITY_ENUM SIZABILITY_ENUM;
     
-    debug invariant()
+    invariant
     {
         if (setupWidths) {
             assert (width.length == cols, "invariant: bad width length");