From a1c015068bd960cf1029286e8850822ae83124f6 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Fri, 6 Aug 2010 03:19:28 -0700 Subject: Removed pointless 'About' button from the preferences --- linden/indra/newview/llfloaterpreference.cpp | 12 ------------ linden/indra/newview/llfloaterpreference.h | 2 -- .../newview/skins/default/xui/en-us/floater_preferences.xml | 5 +---- 3 files changed, 1 insertion(+), 18 deletions(-) (limited to 'linden') diff --git a/linden/indra/newview/llfloaterpreference.cpp b/linden/indra/newview/llfloaterpreference.cpp index c468a5e..744c179 100644 --- a/linden/indra/newview/llfloaterpreference.cpp +++ b/linden/indra/newview/llfloaterpreference.cpp @@ -49,7 +49,6 @@ #include "message.h" #include "llcommandhandler.h" -#include "llfloaterabout.h" #include "llfloaterpreference.h" #include "llpanelnetwork.h" #include "llpanelaudioprefs.h" @@ -353,7 +352,6 @@ LLFloaterPreference::LLFloaterPreference() BOOL LLFloaterPreference::postBuild() { - requires("About..."); requires("OK"); requires("Cancel"); requires("Apply"); @@ -363,9 +361,6 @@ BOOL LLFloaterPreference::postBuild() { return FALSE; } - - mAboutBtn = getChild("About..."); - mAboutBtn->setClickedCallback(onClickAbout, this); mApplyBtn = getChild("Apply"); mApplyBtn->setClickedCallback(onBtnApply, this); @@ -430,13 +425,6 @@ void LLFloaterPreference::show(void*) } -// static -void LLFloaterPreference::onClickAbout(void*) -{ - LLFloaterAbout::show(NULL); -} - - // static void LLFloaterPreference::onBtnOK( void* userdata ) { diff --git a/linden/indra/newview/llfloaterpreference.h b/linden/indra/newview/llfloaterpreference.h index 894d242..6162997 100644 --- a/linden/indra/newview/llfloaterpreference.h +++ b/linden/indra/newview/llfloaterpreference.h @@ -119,12 +119,10 @@ protected: /*virtual*/ void onClose(bool app_quitting); - LLButton* mAboutBtn; LLButton *mOKBtn; LLButton *mCancelBtn; LLButton *mApplyBtn; - static void onClickAbout(void*); static void onBtnOK(void*); static void onBtnCancel(void*); static void onBtnApply(void*); diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_preferences.xml b/linden/indra/newview/skins/default/xui/en-us/floater_preferences.xml index 81168be..214db25 100644 --- a/linden/indra/newview/skins/default/xui/en-us/floater_preferences.xml +++ b/linden/indra/newview/skins/default/xui/en-us/floater_preferences.xml @@ -15,12 +15,9 @@ left_delta="93" mouse_opaque="true" name="Apply" scale_image="true" width="90" />