[ekiga/ds-gtk-application] Local Cluster: Added back Action related code.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-gtk-application] Local Cluster: Added back Action related code.
- Date: Sun, 6 Apr 2014 16:47:32 +0000 (UTC)
commit e90a266dec3f6aa0528a4132da79d2a070c2f7a8
Author: Damien Sandras <dsandras beip be>
Date: Sun Apr 6 18:47:00 2014 +0200
Local Cluster: Added back Action related code.
.../components/local-roster/local-cluster.cpp | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/lib/engine/components/local-roster/local-cluster.cpp
b/lib/engine/components/local-roster/local-cluster.cpp
index 0526984..61e6a17 100644
--- a/lib/engine/components/local-roster/local-cluster.cpp
+++ b/lib/engine/components/local-roster/local-cluster.cpp
@@ -92,20 +92,18 @@ void Local::Cluster::on_status_received (std::string uri,
void Local::Cluster::register_actions (boost::shared_ptr<Ekiga::ContactCore> contact_core)
{
- /*
Ekiga::ContactAction::TesterList testers;
testers.push_back (boost::bind (&Local::Cluster::is_supported_uri, this, _2));
testers.push_back (boost::bind (&Local::Heap::has_no_presentity_with_uri, heap, _2));
- Ekiga::ActionPtr add (new Ekiga::ContactAction ("local-cluster-add", _("Add to Contact List"),
- boost::bind (static_cast<void (Local::Heap::*)(const
Ekiga::ContactPtr&, const std::string&)>(&Local::Heap::new_presentity), heap, _1, _2),
- testers));
+ Ekiga::ContactActionPtr add (new Ekiga::ContactAction ("local-cluster-add", _("Add to Contact List"),
+ boost::bind (static_cast<void
(Local::Heap::*)(const Ekiga::ContactPtr&, const std::string&)>(&Local::Heap::new_presentity), heap, _1, _2),
+ testers));
contact_core->add_action (add);
- */
}
void Local::Cluster::register_actions ()
{
/* Add Actor actions */
- // add_action (Ekiga::ActionPtr (new Ekiga::Action ("local-cluster-new", _("New Contact"),
- // boost::bind (static_cast<void (Local::Heap::*)(const
std::string&, const std::string&)>(&Local::Heap::new_presentity), heap, "", ""))));
+ add_action (Ekiga::ActionPtr (new Ekiga::Action ("local-cluster-new", _("New Contact"),
+ boost::bind (static_cast<void (Local::Heap::*)(const
std::string&, const std::string&)>(&Local::Heap::new_presentity), heap, "", ""))));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]