summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelhome.cpp
diff options
context:
space:
mode:
authorLynx Linden <lynx@lindenlab.com>2009-12-08 10:28:45 +0000
committerLynx Linden <lynx@lindenlab.com>2009-12-08 10:28:45 +0000
commitda2a0385ae6ee8962ed5d4f991df95df13d8e89a (patch)
tree702262739e307c2ce487c439805bcb331f083234 /indra/newview/llpanelhome.cpp
parent5df04533f67abc3e0dce520d0ddb8d70bc7cae27 (diff)
DEV-43439: Remove Back/Forward/Home buttons from Home side panel.
As per request from Yoz. They will add navigation buttons to the actual HTML content.
Diffstat (limited to 'indra/newview/llpanelhome.cpp')
-rw-r--r--indra/newview/llpanelhome.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/indra/newview/llpanelhome.cpp b/indra/newview/llpanelhome.cpp
index fb2629c692..92b6d2f619 100644
--- a/indra/newview/llpanelhome.cpp
+++ b/indra/newview/llpanelhome.cpp
@@ -69,48 +69,11 @@ BOOL LLPanelHome::postBuild()
mBrowser->addObserver(this);
mBrowser->setTrusted(true);
mBrowser->setHomePageUrl(url);
-
- childSetAction("back", onClickBack, this);
- childSetAction("forward", onClickForward, this);
- childSetAction("home", onClickHome, this);
}
return TRUE;
}
-//static
-void LLPanelHome::onClickBack(void* user_data)
-{
- LLPanelHome *self = (LLPanelHome*)user_data;
- if (self && self->mBrowser)
- {
- self->mBrowser->navigateBack();
- }
-}
-
-//static
-void LLPanelHome::onClickForward(void* user_data)
-{
- LLPanelHome *self = (LLPanelHome*)user_data;
- if (self && self->mBrowser)
- {
- self->mBrowser->navigateForward();
- }
-}
-
-//static
-void LLPanelHome::onClickHome(void* user_data)
-{
- LLPanelHome *self = (LLPanelHome*)user_data;
- if (self && self->mBrowser)
- {
- self->mBrowser->navigateHome();
- }
-}
-
void LLPanelHome::handleMediaEvent(LLPluginClassMedia *self, EMediaEvent event)
{
- // update back/forward button state
- childSetEnabled("back", mBrowser->canNavigateBack());
- childSetEnabled("forward", mBrowser->canNavigateForward());
}