[Aptitude-devel] r3112 - in branches/aptitude-0.3/aptitude: . src/vscreen
Daniel Burrows
dburrows@costa.debian.org
Wed, 27 Apr 2005 01:15:52 +0000
Author: dburrows
Date: Wed Apr 27 01:15:49 2005
New Revision: 3112
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/vscreen/testvscreen.cc
Log:
Test multi-line buttons.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Wed Apr 27 01:15:49 2005
@@ -2,6 +2,10 @@
* src/vscreen/testvscreen.cc:
+ Test multi-line fragments.
+
+ * src/vscreen/testvscreen.cc:
+
Test using actual fragments in button labels.
* src/vscreen/vs_togglebutton.cc:
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:15:49 2005
@@ -247,6 +247,8 @@
char buf[256];
snprintf(buf, 256, "%i", i*4+j);
fragment *f=fragf("Button %B%s%b", buf);
+ if(j==2)
+ f=fragf("Line 1%n%F%nLine 3", f);
if(i!=3)
rval->add_widget(new vs_button(f), i, j, 1, 1);