summaryrefslogtreecommitdiff
path: root/indra/newview/llstatusbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llstatusbar.cpp')
-rw-r--r--indra/newview/llstatusbar.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/indra/newview/llstatusbar.cpp b/indra/newview/llstatusbar.cpp
index 40b8445dcf..d7df258750 100644
--- a/indra/newview/llstatusbar.cpp
+++ b/indra/newview/llstatusbar.cpp
@@ -237,9 +237,6 @@ BOOL LLStatusBar::handleRightMouseDown(S32 x, S32 y, MASK mask)
BOOL LLStatusBar::postBuild()
{
- mCommitCallbackRegistrar.add("HideNavbarMenu.Action", boost::bind(&LLStatusBar::onHideNavbarContextMenuItemClicked, this, _2));
- mEnableCallbackRegistrar.add("HideNavbarMenu.EnableMenuItem", boost::bind(&LLStatusBar::onHideNavbarContextMenuItemEnabled, this, _2));
-
mHideNavbarContextMenu = LLUICtrlFactory::getInstance()->createFromFile<LLMenuGL>("menu_hide_navbar.xml", gMenuHolder, LLViewerMenuHolderGL::child_registry_t::instance());
gMenuHolder->addChild(mHideNavbarContextMenu);
@@ -563,43 +560,6 @@ void LLStatusBar::setupDate()
}
}
-bool LLStatusBar::onHideNavbarContextMenuItemEnabled(const LLSD& userdata)
-{
- std::string item = userdata.asString();
-
- if (item == "show_navbar_navigation_panel")
- {
- return gSavedSettings.getBOOL("ShowNavbarNavigationPanel");
- }
- else if (item == "show_navbar_favorites_panel")
- {
- return gSavedSettings.getBOOL("ShowNavbarFavoritesPanel");
- }
-
- return FALSE;
-}
-
-void LLStatusBar::onHideNavbarContextMenuItemClicked(const LLSD& userdata)
-{
- std::string item = userdata.asString();
-
- if (item == "show_navbar_navigation_panel")
- {
- BOOL state = !gSavedSettings.getBOOL("ShowNavbarNavigationPanel");
-
- LLNavigationBar::getInstance()->showNavigationPanel(state);
- gSavedSettings.setBOOL("ShowNavbarNavigationPanel", state);
- }
- else if (item == "show_navbar_favorites_panel")
- {
- BOOL state = !gSavedSettings.getBOOL("ShowNavbarFavoritesPanel");
-
- LLNavigationBar::getInstance()->showFavoritesPanel(state);
- gSavedSettings.setBOOL("ShowNavbarFavoritesPanel", state);
- }
-}
-
-
void LLStatusBar::onMainMenuRightClicked(LLUICtrl* ctrl, S32 x, S32 y, MASK mask)
{
handleRightMouseDown(x, y, mask);