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

Daniel Burrows dburrows@costa.debian.org
Sat, 02 Jul 2005 19:20:49 +0000


Author: dburrows
Date: Sat Jul  2 19:20:46 2005
New Revision: 3573

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/ui.cc
Log:
Force the broken indicator to not show up until it's explicitly shown.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Sat Jul  2 19:20:46 2005
@@ -1,5 +1,9 @@
 2005-07-02  Daniel Burrows  <dburrows@debian.org>
 
+	* src/ui.cc:
+
+	  Force the broken indicator to start out hidden.
+
 	* src/vscreen/columnify.cc:
 
 	  Fix the algorithm that "renders" column-formatted text:

Modified: branches/aptitude-0.3/aptitude/src/ui.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/ui.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/ui.cc	Sat Jul  2 19:20:46 2005
@@ -1744,7 +1744,8 @@
 			      vs_table::EXPAND | vs_table::FILL | vs_table::SHRINK);
   main_multiplex->show();
 
-  main_table->add_widget_opts(make_broken_indicator(), 2, 0, 1, 1,
+  vscreen_widget *b=make_broken_indicator();
+  main_table->add_widget_opts(b, 2, 0, 1, 1,
 			      vs_table::EXPAND | vs_table::FILL | vs_table::SHRINK,
 			      vs_table::ALIGN_CENTER);
 
@@ -1772,6 +1773,10 @@
   // FIXME: put this in load_options() and kill all other references
   //       to setup_columns?
   pkg_item::pkg_columnizer::setup_columns();
+
+  // Make sure the broken indicator doesn't annoyingly pop up for a
+  // moment. (hack?)
+  b->hide();
 }
 
 void ui_main()