summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerchat.cpp
diff options
context:
space:
mode:
authorDon Kjer <don@lindenlab.com>2011-04-26 18:01:18 +0000
committerDon Kjer <don@lindenlab.com>2011-04-26 18:01:18 +0000
commitc14b5c644d75df31a1ef151262480cf875134da2 (patch)
tree9284620a254873585b637f625456c88e9e371436 /indra/newview/llviewerchat.cpp
parent77791a88a9811f71cc9af668d28a903645436be0 (diff)
parentb87cb90a55ed74d51587eec581fb57e29f510c41 (diff)
Merge with viewer-development
Diffstat (limited to 'indra/newview/llviewerchat.cpp')
-rw-r--r--indra/newview/llviewerchat.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llviewerchat.cpp b/indra/newview/llviewerchat.cpp
index 86a29de403..a57eb3276e 100644
--- a/indra/newview/llviewerchat.cpp
+++ b/indra/newview/llviewerchat.cpp
@@ -36,6 +36,7 @@
#include "llinstantmessage.h" //SYSTEM_FROM
// LLViewerChat
+LLViewerChat::font_change_signal_t LLViewerChat::sChatFontChangedSignal;
//static
void LLViewerChat::getChatColor(const LLChat& chat, LLColor4& r_color)
@@ -264,3 +265,16 @@ std::string LLViewerChat::getObjectImSLURL(const LLChat& chat, const LLSD& args)
return url;
}
+
+//static
+boost::signals2::connection LLViewerChat::setFontChangedCallback(const font_change_signal_t::slot_type& cb)
+{
+ return sChatFontChangedSignal.connect(cb);
+}
+
+//static
+void LLViewerChat::signalChatFontChanged()
+{
+ // Notify all observers that our font has changed
+ sChatFontChangedSignal(getChatFont());
+}