[Aptitude-devel] r3060 - branches/aptitude-0.3/aptitude/src

Daniel Burrows dburrows@costa.debian.org
Sat, 23 Apr 2005 01:09:51 +0000


Author: dburrows
Date: Sat Apr 23 01:09:50 2005
New Revision: 3060

Modified:
   branches/aptitude-0.3/aptitude/src/broken_indicator.cc
Log:
Use the new signal.

Modified: branches/aptitude-0.3/aptitude/src/broken_indicator.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/broken_indicator.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/broken_indicator.cc	Sat Apr 23 01:09:50 2005
@@ -51,7 +51,10 @@
   void handle_cache_reload()
   {
     if(apt_cache_file)
-      (*apt_cache_file)->package_state_changed.connect(sigc::mem_fun(*this, &broken_indicator::update));
+      {
+	(*apt_cache_file)->package_state_changed.connect(sigc::mem_fun(*this, &broken_indicator::update));
+	(*apt_cache_file)->selected_solution_changed.connect(sigc::mem_fun(*this, &broken_indicator::update));
+      }
 
     update();
   }
@@ -59,7 +62,10 @@
   broken_indicator()
   {
     if(apt_cache_file)
-      (*apt_cache_file)->package_state_changed.connect(sigc::mem_fun(*this, &broken_indicator::update));
+      {
+	(*apt_cache_file)->package_state_changed.connect(sigc::mem_fun(*this, &broken_indicator::update));
+	(*apt_cache_file)->selected_solution_changed.connect(sigc::mem_fun(*this, &broken_indicator::update));
+      }
 
     cache_closed.connect(sigc::mem_fun(*this, &broken_indicator::update));
     cache_reloaded.connect(sigc::mem_fun(*this, &broken_indicator::handle_cache_reload));