[ekiga] Added a dummy action to join a discussion group in the loudmouth code
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Added a dummy action to join a discussion group in the loudmouth code
- Date: Mon, 7 Mar 2011 18:20:41 +0000 (UTC)
commit 7067f4eb970239437ec70edb9ffc643f7f46c28d
Author: Snark <jpuydt gnome org>
Date: Mon Mar 7 18:21:22 2011 +0100
Added a dummy action to join a discussion group in the loudmouth code
plugins/loudmouth/loudmouth-dialect.cpp | 15 +++++++++++++--
plugins/loudmouth/loudmouth-dialect.h | 2 ++
2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/plugins/loudmouth/loudmouth-dialect.cpp b/plugins/loudmouth/loudmouth-dialect.cpp
index 2cb1499..915db76 100644
--- a/plugins/loudmouth/loudmouth-dialect.cpp
+++ b/plugins/loudmouth/loudmouth-dialect.cpp
@@ -33,6 +33,8 @@
*
*/
+#include <glib/gi18n.h>
+
#include "loudmouth-dialect.h"
LM::Dialect::Dialect (Ekiga::ServiceCore& core_):
@@ -111,7 +113,16 @@ LM::Dialect::open_chat (PresentityPtr presentity)
}
bool
-LM::Dialect::populate_menu (Ekiga::MenuBuilder& /*builder*/)
+LM::Dialect::populate_menu (Ekiga::MenuBuilder& builder)
+{
+ builder.add_action ("group_chat", _("Join a discussion group"),
+ boost::bind (&LM::Dialect::group_chat_action, this));
+
+ return true;
+}
+
+void
+LM::Dialect::group_chat_action ()
{
- return false;
+ //std::cout << __PRETTY_FUNCTION__ << std::endl;
}
diff --git a/plugins/loudmouth/loudmouth-dialect.h b/plugins/loudmouth/loudmouth-dialect.h
index 2d91c51..213bc16 100644
--- a/plugins/loudmouth/loudmouth-dialect.h
+++ b/plugins/loudmouth/loudmouth-dialect.h
@@ -62,6 +62,8 @@ namespace LM
private:
Ekiga::ServiceCore& core;
+
+ void group_chat_action ();
};
typedef boost::shared_ptr<Dialect> DialectPtr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]