[ekiga] ActionProvider: Add the possibility to remove Actions.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] ActionProvider: Add the possibility to remove Actions.
- Date: Thu, 12 Nov 2015 18:36:43 +0000 (UTC)
commit 0bdac92fde6870fa1af2ad73b5c1422cd1f93fc8
Author: Damien Sandras <dsandras seconix com>
Date: Sun Oct 11 11:43:04 2015 +0200
ActionProvider: Add the possibility to remove Actions.
lib/engine/action/action-provider.cpp | 9 +++++++++
lib/engine/action/action-provider.h | 2 ++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/action/action-provider.cpp b/lib/engine/action/action-provider.cpp
index 0c139ff..acb2311 100644
--- a/lib/engine/action/action-provider.cpp
+++ b/lib/engine/action/action-provider.cpp
@@ -45,6 +45,15 @@ ActionProvider::add_action (Actor & actor,
actor.add_action (action);
}
+
+void
+ActionProvider::remove_action (Actor & actor,
+ const std::string & action)
+{
+ actor.remove_action (action);
+}
+
+
void
URIActionProviderStore::pull_actions (Actor & actor,
const std::string & name,
diff --git a/lib/engine/action/action-provider.h b/lib/engine/action/action-provider.h
index 841a415..823a76f 100644
--- a/lib/engine/action/action-provider.h
+++ b/lib/engine/action/action-provider.h
@@ -60,6 +60,8 @@ namespace Ekiga {
protected:
virtual void add_action (Actor & actor,
ActionPtr action);
+ virtual void remove_action (Actor & actor,
+ const std::string & action);
};
typedef boost::shared_ptr< ActionProvider > ActionProviderPtr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]