[Aptitude-svn-commit] r4380 - in branches/aptitude-0.3/aptitude: .
src/vscreen
Daniel Burrows
dburrows at costa.debian.org
Fri Sep 30 20:47:09 UTC 2005
Author: dburrows
Date: Fri Sep 30 20:47:06 2005
New Revision: 4380
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/vscreen/vs_multiplex.cc
Log:
Fix a binding to use weak references instead of strong references.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Fri Sep 30 20:47:06 2005
@@ -1,5 +1,9 @@
2005-09-30 Daniel Burrows <dburrows at debian.org>
+ * src/vscreen/vs_multiplex.cc:
+
+ Bind weak references instead of strong references.
+
* src/cmdline/cmdline_update.cc:
Fix a silly compile problem.
Modified: branches/aptitude-0.3/aptitude/src/vscreen/vs_multiplex.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/vs_multiplex.cc (original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/vs_multiplex.cc Fri Sep 30 20:47:06 2005
@@ -441,8 +441,8 @@
{
++i;
- w->shown_sig.connect(bind(sigc::mem_fun(*this, &vs_multiplex::show_widget), w));
- w->hidden_sig.connect(bind(sigc::mem_fun(*this, &vs_multiplex::hide_widget), w));
+ w->shown_sig.connect(sigc::bind(sigc::mem_fun(*this, &vs_multiplex::show_widget_bare), w.weak_ref()));
+ w->hidden_sig.connect(sigc::bind(sigc::mem_fun(*this, &vs_multiplex::hide_widget_bare), w.weak_ref()));
children.insert(i, child_info(w, title));
w->set_owner(this);
More information about the Aptitude-svn-commit
mailing list