[ekiga] XMPP/Jabber: move the chat actions higher up in the menu
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] XMPP/Jabber: move the chat actions higher up in the menu
- Date: Wed, 17 Oct 2012 18:17:09 +0000 (UTC)
commit 674b41c798de1e0ec765c851873745691daec227
Author: Julien Puydt <jpuydt free fr>
Date: Wed Oct 17 20:15:38 2012 +0200
XMPP/Jabber: move the chat actions higher up in the menu
plugins/loudmouth/loudmouth-presentity.cpp | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/plugins/loudmouth/loudmouth-presentity.cpp b/plugins/loudmouth/loudmouth-presentity.cpp
index e85d7ef..1496099 100644
--- a/plugins/loudmouth/loudmouth-presentity.cpp
+++ b/plugins/loudmouth/loudmouth-presentity.cpp
@@ -157,6 +157,14 @@ LM::Presentity::populate_menu (Ekiga::MenuBuilder& builder)
const gchar* subscription = lm_message_node_get_attribute (item, "subscription");
const gchar* ask = lm_message_node_get_attribute (item, "ask");
+ if ( !has_chat) {
+
+ builder.add_action ("im-message-new", _("Start chat"), boost::ref (chat_requested));
+ } else {
+
+ builder.add_action ("im-message-new", _("Continue chat"), boost::ref (chat_requested));
+ }
+
builder.add_action ("edit", _("_Edit"),
boost::bind (&LM::Presentity::edit_presentity, this));
@@ -182,14 +190,6 @@ LM::Presentity::populate_menu (Ekiga::MenuBuilder& builder)
builder.add_action ("stop", _("Stop getting his/her status"), boost::bind (&LM::Presentity::stop_to, this));
}
- if ( !has_chat) {
-
- builder.add_action ("im-message-new", _("Start chat"), boost::ref (chat_requested));
- } else {
-
- builder.add_action ("im-message-new", _("Continue chat"), boost::ref (chat_requested));
- }
-
builder.add_action ("remove", _("_Remove"),
boost::bind (&LM::Presentity::remove_presentity, this));
return true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]