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

Daniel Burrows dburrows@costa.debian.org
Wed, 27 Apr 2005 03:12:08 +0000


Author: dburrows
Date: Wed Apr 27 03:12:05 2005
New Revision: 3131

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/vscreen/vs_util.cc
Log:
Fix how the canned dialogs create labels.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Wed Apr 27 03:12:05 2005
@@ -1,5 +1,10 @@
 2005-04-26  Daniel Burrows  <dburrows@debian.org>
 
+	* src/vscreen/vs_util.cc:
+
+	  Fix the canned dialogs to properly initialize the attributes of
+	  their labels.
+
 	* src/vscreen/testvscreen.cc:
 
 	  Fix the label test.

Modified: branches/aptitude-0.3/aptitude/src/vscreen/vs_util.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/vs_util.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/vs_util.cc	Wed Apr 27 03:12:05 2005
@@ -91,7 +91,7 @@
 vscreen_widget *vs_dialog_ok(string msg, slot0arg okslot,
 			     int attr)
 {
-  vscreen_widget *l=new vs_label(msg);
+  vscreen_widget *l=new vs_label(msg, attr);
   l->set_bg(attr);
 
   return vs_dialog_ok(l, okslot, _("Ok"), attr);
@@ -324,7 +324,7 @@
 				 int attr)
 {
   vs_table *t=new vs_table;
-  vs_label *l=new vs_label(msg);
+  vs_label *l=new vs_label(msg, attr);
   vs_editline *e=new vs_editline(rootwin.getmaxx()-6, "", deflt, history);
   vs_button *bok=new vs_button(_("Ok")), *bcancel=new vs_button(_("Cancel"));
   vs_frame *f=new vs_frame(t);