[ekiga] Made the Ekiga::RefLister class emit the "updated" signal more often
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Made the Ekiga::RefLister class emit the "updated" signal more often
- Date: Sun, 13 Feb 2011 17:16:48 +0000 (UTC)
commit 75e643a06875b5e0d62cecd925c87bd4cd703fd1
Author: Snark <jpuydt gnome org>
Date: Sun Feb 13 17:47:51 2011 +0100
Made the Ekiga::RefLister class emit the "updated" signal more often
lib/engine/framework/reflister.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/framework/reflister.h b/lib/engine/framework/reflister.h
index 6daf60f..3c23c21 100644
--- a/lib/engine/framework/reflister.h
+++ b/lib/engine/framework/reflister.h
@@ -120,9 +120,11 @@ void
Ekiga::RefLister<ObjectType>::add_object (boost::shared_ptr<ObjectType> obj)
{
objects[obj].push_back (obj->updated.connect (boost::bind (boost::ref (object_updated), obj)));
+ objects[obj].push_back (obj->updated.connect (boost::ref (updated)));
objects[obj].push_back (obj->removed.connect (boost::bind (&Ekiga::RefLister<ObjectType>::remove_object, this, obj)));
object_added (obj);
+ updated ();
}
template<typename ObjectType>
@@ -144,6 +146,7 @@ Ekiga::RefLister<ObjectType>::remove_object (boost::shared_ptr<ObjectType> obj)
iter->disconnect ();
objects.erase (objects.find (obj));
object_removed (obj);
+ updated ();
}
template<typename ObjectType>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]