diff options
author | Oz Linden <oz@lindenlab.com> | 2011-04-21 20:23:26 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-04-21 20:23:26 -0400 |
commit | b15dca22637b0b2c1947b758a93f51163fb48cf1 (patch) | |
tree | 80aa8e85d95dc2b2dc1085d9d504ce3ea552bf4e /indra/newview/llviewerchat.cpp | |
parent | 79dceafdfd767e264e3a21e12cb73e52f57cfe06 (diff) | |
parent | 7577ec25a066c5bb9b39978e32b8da084b1916d7 (diff) |
merge changes for storm-1095
Diffstat (limited to 'indra/newview/llviewerchat.cpp')
-rw-r--r-- | indra/newview/llviewerchat.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llviewerchat.cpp b/indra/newview/llviewerchat.cpp index 286b16bab2..f5484ff010 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) @@ -256,3 +257,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()); +} |