[Aptitude-devel] r3114 - in branches/aptitude-0.3/aptitude: . src/vscreen

Daniel Burrows dburrows@costa.debian.org
Wed, 27 Apr 2005 01:38:44 +0000


Author: dburrows
Date: Wed Apr 27 01:38:41 2005
New Revision: 3114

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/vscreen/testvscreen.cc
Log:
Use more sensible settings to insert the buttons in the test button screen.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Wed Apr 27 01:38:41 2005
@@ -1,5 +1,10 @@
 2005-04-26  Daniel Burrows  <dburrows@debian.org>
 
+	* src/vscreen/testvscreen.cc:
+
+	  In the button test screen, use different settings to insert the
+	  various buttons; make sure the buttons are center-aligned.
+
 	* src/vscreen/vs_button.cc:
 
 	  Fix multi-line push-buttons.

Modified: branches/aptitude-0.3/aptitude/src/vscreen/testvscreen.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/testvscreen.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/testvscreen.cc	Wed Apr 27 01:38:41 2005
@@ -251,11 +251,13 @@
 	    f=fragf("Line 1%n%F%nLine 3", f);
 
 	  if(i!=3)
-	    rval->add_widget(new vs_button(f), i, j, 1, 1);
+	    rval->add_widget_opts(new vs_button(f), i, j, 1, 1,
+				  vs_table::ALIGN_CENTER, vs_table::ALIGN_CENTER);
 	  else
 	    {
 	      vs_togglebutton *b=new vs_radiobutton(f);
-	      rval->add_widget(b, i, j, 1, 1, true);
+	      rval->add_widget_opts(b, i, j, 1, 1,
+				    vs_table::ALIGN_CENTER | vs_table::EXPAND, vs_table::ALIGN_CENTER);
 	      g->add_button(b, i*4+j);
 	    }
 	}