[Aptitude-svn-commit] r3344 - in branches/aptitude-0.3/aptitude: . src/vscreen
Daniel Burrows
dburrows@costa.debian.org
Tue, 07 Jun 2005 01:47:00 +0000
Author: dburrows
Date: Tue Jun 7 01:46:58 2005
New Revision: 3344
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.cc
Log:
Fix dialog box buttons by changing attributes and background at the same time.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Tue Jun 7 01:46:58 2005
@@ -1,5 +1,12 @@
2005-06-06 Daniel Burrows <dburrows@debian.org>
+ * src/vscreen/vscreen_widget.cc:
+
+ Change both the widget's attributes and its background in
+ apply_style. I don't for the life of me know why this should be
+ necessary, but without it, buttons in dialog boxes don't display
+ properly.
+
* src/vscreen/vscreen.cc:
Fix the color of highlighted multiplexer tabs, and get rid of
Modified: branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.cc (original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.cc Tue Jun 7 01:46:58 2005
@@ -49,6 +49,7 @@
void vscreen_widget::apply_style(const style &st)
{
+ bkgdset(st.get_attrs());
attrset(st.get_attrs());
}