From f6e2a7bbdd8e65a27e3c397dab98807e881323a7 Mon Sep 17 00:00:00 2001
From: McCabe Maxsted
Date: Mon, 27 Apr 2009 14:08:57 -0700
Subject: Applied Armin's gesture manager patch
---
linden/indra/newview/llchatbar.cpp | 5 +++--
.../indra/newview/skins/default/xui/en-us/panel_chat_bar.xml | 10 ++++++----
2 files changed, 9 insertions(+), 6 deletions(-)
(limited to 'linden')
diff --git a/linden/indra/newview/llchatbar.cpp b/linden/indra/newview/llchatbar.cpp
index 31fa653..971ffcd 100644
--- a/linden/indra/newview/llchatbar.cpp
+++ b/linden/indra/newview/llchatbar.cpp
@@ -48,6 +48,7 @@
#include "llcommandhandler.h" // secondlife:///app/chat/ support
#include "llviewercontrol.h"
#include "llfloaterchat.h"
+#include "llfloatergesture.h"
#include "llgesturemgr.h"
#include "llkeyboard.h"
#include "lllineeditor.h"
@@ -644,8 +645,9 @@ void LLChatBar::onCommitGesture(LLUICtrl* ctrl, void* data)
if (gestures)
{
S32 index = gestures->getFirstSelectedIndex();
- if (index == 0)
+ if (index <= 0)
{
+ LLFloaterGesture::toggleVisibility();
return;
}
const std::string& trigger = gestures->getSelectedValue().asString();
@@ -655,7 +657,6 @@ void LLChatBar::onCommitGesture(LLUICtrl* ctrl, void* data)
std::string text(trigger);
std::string revised_text;
gGestureManager.triggerAndReviseString(text, &revised_text);
-
revised_text = utf8str_trim(revised_text);
if (!revised_text.empty())
{
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_chat_bar.xml b/linden/indra/newview/skins/default/xui/en-us/panel_chat_bar.xml
index 95604ff..1d77909 100644
--- a/linden/indra/newview/skins/default/xui/en-us/panel_chat_bar.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/panel_chat_bar.xml
@@ -14,7 +14,7 @@
left="107" max_length="254" name="Chat Editor"
select_all_on_focus_received="false" select_on_focus="false" tab_group="1"
tool_tip="Press Enter to say, Ctrl-Enter to shout." width="105" />
-
@@ -24,8 +24,10 @@
Shout
-
-
+
+
+
Gestures
--
cgit v1.1