[Aptitude-svn-commit] r3338 - in branches/aptitude-0.3/aptitude: . src/vscreen

Daniel Burrows dburrows@costa.debian.org
Mon, 06 Jun 2005 23:18:00 +0000


Author: dburrows
Date: Mon Jun  6 23:17:58 2005
New Revision: 3338

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/vscreen/vs_minibuf_win.cc
Log:
Fix bad style names, a few other minor fixes.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Mon Jun  6 23:17:58 2005
@@ -1,5 +1,11 @@
 2005-06-06  Daniel Burrows  <dburrows@debian.org>
 
+	* src/vscreen/vs_minibuf_win.cc:
+
+	Fix the minibuf window to set the basic style of its header and
+	status labels from the corrent style (use Status instead of
+	ScreenStatusColor).
+
 	* src/vscreen/config/colors.cc:
 
 	Correct color updating: use PAIR_NUMBER to retrieve the old pair

Modified: branches/aptitude-0.3/aptitude/src/vscreen/vs_minibuf_win.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/vs_minibuf_win.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/vs_minibuf_win.cc	Mon Jun  6 23:17:58 2005
@@ -32,9 +32,11 @@
   do_layout.connect(sigc::mem_fun(*this, &vs_minibuf_win::layout_me));
 
   status=new vs_multiplex;
-  status_lbl=new vs_label("", get_style("ScreenStatusColor"));
+  status_lbl=new vs_label("");
+  status_lbl->set_bg_style(get_style("Status"));
   status->add_widget(status_lbl);
-  header=new vs_label("", get_style("ScreenHeaderColor"));
+  header=new vs_label("");
+  header->set_bg_style(get_style("Header"));
 
   status->set_owner(this);
   header->set_owner(this);
@@ -121,12 +123,12 @@
 
 void vs_minibuf_win::set_header(string new_header)
 {
-  header->set_text(new_header, get_style("ScreenHeaderColor"));
+  header->set_text(new_header);
 }
 
 void vs_minibuf_win::set_status(string new_status)
 {
-  status_lbl->set_text(new_status, get_style("ScreenStatusColor"));
+  status_lbl->set_text(new_status);
 }
 
 void vs_minibuf_win::add_widget(vscreen_widget *widget)