aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanellogin.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanellogin.cpp28
1 files changed, 27 insertions, 1 deletions
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp
index 5f31216..fdc431c 100644
--- a/linden/indra/newview/llpanellogin.cpp
+++ b/linden/indra/newview/llpanellogin.cpp
@@ -220,7 +220,8 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
220 text->setClickedCallback(onClickVersion); 220 text->setClickedCallback(onClickVersion);
221 text->setCallbackUserData(this); 221 text->setCallbackUserData(this);
222 222
223 // HACK 223 // HACK to move to the lower-right of the window
224 // replace/remove this logic when we have dynamic layouts
224 S32 right = getRect().mRight; 225 S32 right = getRect().mRight;
225 LLRect r = text->getRect(); 226 LLRect r = text->getRect();
226 const S32 PAD = 2; 227 const S32 PAD = 2;
@@ -229,6 +230,31 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
229 text->setRect(r); 230 text->setRect(r);
230 } 231 }
231 232
233 LLTextBox* channel_text = LLUICtrlFactory::getTextBoxByName(this, "channel_text");
234 if (channel_text)
235 {
236 channel_text->setText(gChannelName);
237 channel_text->setClickedCallback(onClickVersion);
238 channel_text->setCallbackUserData(this);
239
240 // HACK to move to the right of the window, above the version string,
241 // replace/remove this logic when we have dynamic layouts
242 S32 right = getRect().mRight;
243 LLRect r = channel_text->getRect();
244 const S32 PAD = 2;
245 S32 version_string_top = r.mTop;
246 if(text)
247 {
248 version_string_top = text->getRect().mTop;
249 }
250 r.setOriginAndSize(
251 right - r.getWidth() - PAD,
252 version_string_top,
253 r.getWidth(),
254 r.getHeight());
255 channel_text->setRect(r);
256 }
257
232 // get the web browser control 258 // get the web browser control
233 #if LL_LIBXUL_ENABLED 259 #if LL_LIBXUL_ENABLED
234 LLWebBrowserCtrl* web_browser = LLUICtrlFactory::getWebBrowserCtrlByName(this, "login_html"); 260 LLWebBrowserCtrl* web_browser = LLUICtrlFactory::getWebBrowserCtrlByName(this, "login_html");