diff options
author | Merov Linden <merov@lindenlab.com> | 2011-10-03 17:29:00 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2011-10-03 17:29:00 -0700 |
commit | daae211fe3e2d1da3623951b1166473c53ce5808 (patch) | |
tree | ab98491950281de2be8d98807fc931781e2b66a5 /indra/llui/lltoolbar.cpp | |
parent | 99ada9b047d1cda8f45ec7f193ec04328496a721 (diff) | |
parent | 05dd98a42327f8249b34dcf28cb7496a69b5f1ab (diff) |
EXP-1202 : pull from richard/viewer-experience-fui
Diffstat (limited to 'indra/llui/lltoolbar.cpp')
-rw-r--r-- | indra/llui/lltoolbar.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/llui/lltoolbar.cpp b/indra/llui/lltoolbar.cpp index 762e738264..199574629f 100644 --- a/indra/llui/lltoolbar.cpp +++ b/indra/llui/lltoolbar.cpp @@ -511,10 +511,13 @@ LLToolBarButton* LLToolBar::createButton(const LLCommandId& id) LLCommand* commandp = LLCommandManager::instance().getCommand(id); if (!commandp) return NULL; + std::string label = LLTrans::getString(commandp->labelRef()); + std::string tooltip = label + "\n" + LLTrans::getString(commandp->tooltipRef()); + LLToolBarButton::Params button_p; button_p.name = id.name(); - button_p.label = LLTrans::getString(commandp->labelRef()); - button_p.tool_tip = button_p.label(); + button_p.label = label; + button_p.tool_tip = tooltip; button_p.image_overlay = LLUI::getUIImage(commandp->icon()); button_p.overwriteFrom(mButtonParams[mButtonType]); LLToolBarButton* button = LLUICtrlFactory::create<LLToolBarButton>(button_p); |