[Aptitude-devel] r3110 - in branches/aptitude-0.3/aptitude: . src/vscreen
Daniel Burrows
dburrows@costa.debian.org
Wed, 27 Apr 2005 01:11:41 +0000
Author: dburrows
Date: Wed Apr 27 01:11:38 2005
New Revision: 3110
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/vscreen/vs_togglebutton.cc
Log:
Make sure toggle buttons are displayed properly.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Wed Apr 27 01:11:38 2005
@@ -1,5 +1,10 @@
2005-04-26 Daniel Burrows <dburrows@debian.org>
+ * src/vscreen/vs_togglebutton.cc:
+
+ Make sure the right half of the toggle button's check gets
+ displayed.
+
* src/vs_button.cc:
Don't go into infinite loops drawing buttons.
Modified: branches/aptitude-0.3/aptitude/src/vscreen/vs_togglebutton.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/vs_togglebutton.cc (original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/vs_togglebutton.cc Wed Apr 27 01:11:38 2005
@@ -27,6 +27,8 @@
addch(mark);
else
addch(' ');
+
+ addch(bracketr);
}
void vs_togglebutton::paint()
@@ -57,7 +59,7 @@
attrset(get_bg());
}
- addstr(lines[i]);
+ mvaddnstr(i, 4, lines[i], lines[i].size());
}
}