[haiku-commits] r39642 - haiku/trunk/src/tests/libs/alm

  • From: clemens.zeidler@xxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 26 Nov 2010 05:23:13 +0100 (CET)

Author: czeidler
Date: 2010-11-26 05:23:13 +0100 (Fri, 26 Nov 2010)
New Revision: 39642
Changeset: http://dev.haiku-os.org/changeset/39642

Modified:
   haiku/trunk/src/tests/libs/alm/Pinwheel.cpp
Log:
Simplify the Pinwheel demo according to the last commit.



Modified: haiku/trunk/src/tests/libs/alm/Pinwheel.cpp
===================================================================
--- haiku/trunk/src/tests/libs/alm/Pinwheel.cpp 2010-11-26 04:20:38 UTC (rev 
39641)
+++ haiku/trunk/src/tests/libs/alm/Pinwheel.cpp 2010-11-26 04:23:13 UTC (rev 
39642)
@@ -45,17 +45,14 @@
                YTab* y1 = layout->AddYTab();
                YTab* y2 = layout->AddYTab();
 
-               Area* a1 = layout->AddView(button1, layout->Left(), 
layout->Top(), x2,
+               layout->AddView(button1, layout->Left(), layout->Top(), x2,
                        y1);
                layout->AddView(button2, x2, layout->Top(), layout->Right(), 
y2);
-               Area* a3 = layout->AddView(button3, x1, y2, layout->Right(),
+               layout->AddView(button3, x1, y2, layout->Right(),
                        layout->Bottom());
                layout->AddView(button4, layout->Left(), y1, x1, 
layout->Bottom());
                layout->AddView(textView1, x1, y1, x2, y2);
 
-               a1->SetWidthAs(a3);
-               a1->SetHeightAs(a3);
-
                // alternative setup
                /* 
                layout->AddView(button1);


Other related posts:

  • » [haiku-commits] r39642 - haiku/trunk/src/tests/libs/alm - clemens . zeidler