[Aptitude-devel] r3120 - in branches/aptitude-0.3/aptitude: . src
Daniel Burrows
dburrows@costa.debian.org
Wed, 27 Apr 2005 02:27:43 +0000
Author: dburrows
Date: Wed Apr 27 02:27:40 2005
New Revision: 3120
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/apt_config_widgets.cc
Log:
Flow the text in the configuration button labels.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Wed Apr 27 02:27:40 2005
@@ -1,5 +1,9 @@
2005-04-26 Daniel Burrows <dburrows@debian.org>
+ * src/apt_config_widgets.cc:
+
+ Flow the text in the configuration button labels.
+
* src/vscreen/vs_togglebutton.cc, src/vscreen/vs_togglebutton.h:
For multiline toggles, make sure to put the cursor on the line
Modified: branches/aptitude-0.3/aptitude/src/apt_config_widgets.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/apt_config_widgets.cc (original)
+++ branches/aptitude-0.3/aptitude/src/apt_config_widgets.cc Wed Apr 27 02:27:40 2005
@@ -6,10 +6,15 @@
#include <generic/apt.h>
#include <generic/config_signal.h>
+#include <vscreen/config/colors.h>
+#include <vscreen/fragment.h>
+
using namespace std;
apt_bool_widget::apt_bool_widget(string _label, string _item, bool _default)
- :vs_checkbutton(_label, aptcfg->FindB(_item, _default)),
+ :vs_checkbutton(flowbox(text_fragment(_label,
+ // HACK: cascading will fix
+ get_color("DefaultWidgetBackground")|A_REVERSE)), aptcfg->FindB(_item, _default)),
item(_item), my_default(_default)
{
}