aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-08-06 03:19:28 -0700
committerMcCabe Maxsted2010-08-07 06:22:54 -0700
commita1c015068bd960cf1029286e8850822ae83124f6 (patch)
treea4f67c06ae676b98262e9f270bc77ecf35ac9451 /linden/indra/newview
parentTidied up Advanced preferences layout (client name tag options still need to ... (diff)
downloadmeta-impy-a1c015068bd960cf1029286e8850822ae83124f6.zip
meta-impy-a1c015068bd960cf1029286e8850822ae83124f6.tar.gz
meta-impy-a1c015068bd960cf1029286e8850822ae83124f6.tar.bz2
meta-impy-a1c015068bd960cf1029286e8850822ae83124f6.tar.xz
Removed pointless 'About' button from the preferences
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/llfloaterpreference.cpp12
-rw-r--r--linden/indra/newview/llfloaterpreference.h2
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/floater_preferences.xml5
3 files changed, 1 insertions, 18 deletions
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 @@
49#include "message.h" 49#include "message.h"
50 50
51#include "llcommandhandler.h" 51#include "llcommandhandler.h"
52#include "llfloaterabout.h"
53#include "llfloaterpreference.h" 52#include "llfloaterpreference.h"
54#include "llpanelnetwork.h" 53#include "llpanelnetwork.h"
55#include "llpanelaudioprefs.h" 54#include "llpanelaudioprefs.h"
@@ -353,7 +352,6 @@ LLFloaterPreference::LLFloaterPreference()
353 352
354BOOL LLFloaterPreference::postBuild() 353BOOL LLFloaterPreference::postBuild()
355{ 354{
356 requires<LLButton>("About...");
357 requires<LLButton>("OK"); 355 requires<LLButton>("OK");
358 requires<LLButton>("Cancel"); 356 requires<LLButton>("Cancel");
359 requires<LLButton>("Apply"); 357 requires<LLButton>("Apply");
@@ -363,9 +361,6 @@ BOOL LLFloaterPreference::postBuild()
363 { 361 {
364 return FALSE; 362 return FALSE;
365 } 363 }
366
367 mAboutBtn = getChild<LLButton>("About...");
368 mAboutBtn->setClickedCallback(onClickAbout, this);
369 364
370 mApplyBtn = getChild<LLButton>("Apply"); 365 mApplyBtn = getChild<LLButton>("Apply");
371 mApplyBtn->setClickedCallback(onBtnApply, this); 366 mApplyBtn->setClickedCallback(onBtnApply, this);
@@ -430,13 +425,6 @@ void LLFloaterPreference::show(void*)
430} 425}
431 426
432 427
433// static
434void LLFloaterPreference::onClickAbout(void*)
435{
436 LLFloaterAbout::show(NULL);
437}
438
439
440// static 428// static
441void LLFloaterPreference::onBtnOK( void* userdata ) 429void LLFloaterPreference::onBtnOK( void* userdata )
442{ 430{
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:
119 119
120 /*virtual*/ void onClose(bool app_quitting); 120 /*virtual*/ void onClose(bool app_quitting);
121 121
122 LLButton* mAboutBtn;
123 LLButton *mOKBtn; 122 LLButton *mOKBtn;
124 LLButton *mCancelBtn; 123 LLButton *mCancelBtn;
125 LLButton *mApplyBtn; 124 LLButton *mApplyBtn;
126 125
127 static void onClickAbout(void*);
128 static void onBtnOK(void*); 126 static void onBtnOK(void*);
129 static void onBtnCancel(void*); 127 static void onBtnCancel(void*);
130 static void onBtnApply(void*); 128 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 @@
15 left_delta="93" mouse_opaque="true" name="Apply" scale_image="true" 15 left_delta="93" mouse_opaque="true" name="Apply" scale_image="true"
16 width="90" /> 16 width="90" />
17 <button bottom="-455" enabled="true" follows="left|bottom" font="SansSerif" 17 <button bottom="-455" enabled="true" follows="left|bottom" font="SansSerif"
18 halign="center" height="20" label="About" label_selected="About" left="9"
19 mouse_opaque="true" name="About..." scale_image="true" width="90" />
20 <button bottom="-455" enabled="true" follows="left|bottom" font="SansSerif"
21 halign="center" height="20" 18 halign="center" height="20"
22 help_url="http://secondlife.com/app/help/technical/preferences.php" 19 help_url="http://secondlife.com/app/help/technical/preferences.php"
23 label="Help" label_selected="Help" left_delta="93" mouse_opaque="true" 20 label="Help" label_selected="Help" left="9" mouse_opaque="true"
24 name="Help" scale_image="true" width="90" /> 21 name="Help" scale_image="true" width="90" />
25 <tab_container bottom="-431" enabled="true" follows="left|top|right|bottom" height="410" 22 <tab_container bottom="-431" enabled="true" follows="left|top|right|bottom" height="410"
26 left="0" mouse_opaque="false" name="pref core" tab_group="1" 23 left="0" mouse_opaque="false" name="pref core" tab_group="1"