diff options
author | David Walter Seikel | 2011-12-03 19:51:22 +1000 |
---|---|---|
committer | David Walter Seikel | 2011-12-03 19:51:22 +1000 |
commit | f5d6cacd6eab92c05071215f54878d8a1ca4f71f (patch) | |
tree | ca02c1bfd09c58d899750c9ec45b26a86ad3714b /linden/indra/newview/llprefscolors.cpp | |
parent | Merge branch 'next' of git://github.com/imprudence/imprudence into next (diff) | |
download | meta-impy-f5d6cacd6eab92c05071215f54878d8a1ca4f71f.zip meta-impy-f5d6cacd6eab92c05071215f54878d8a1ca4f71f.tar.gz meta-impy-f5d6cacd6eab92c05071215f54878d8a1ca4f71f.tar.bz2 meta-impy-f5d6cacd6eab92c05071215f54878d8a1ca4f71f.tar.xz |
Remove more of the "set your own tag colour" stuff.
I think this is right.
Diffstat (limited to 'linden/indra/newview/llprefscolors.cpp')
-rw-r--r-- | linden/indra/newview/llprefscolors.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/linden/indra/newview/llprefscolors.cpp b/linden/indra/newview/llprefscolors.cpp index 9486077..ea105e7 100644 --- a/linden/indra/newview/llprefscolors.cpp +++ b/linden/indra/newview/llprefscolors.cpp | |||
@@ -82,9 +82,6 @@ BOOL LLPrefsColors::postBuild() | |||
82 | 82 | ||
83 | getChild<LLColorSwatchCtrl>("effect_color_swatch")->set(gSavedSettings.getColor4("EffectColor")); | 83 | getChild<LLColorSwatchCtrl>("effect_color_swatch")->set(gSavedSettings.getColor4("EffectColor")); |
84 | 84 | ||
85 | static BOOL* sShowClientColor = rebind_llcontrol<BOOL>("ShowClientColor", &gSavedSettings, true); | ||
86 | childSetValue("client_name_color_check", (*sShowClientColor)); | ||
87 | |||
88 | return TRUE; | 85 | return TRUE; |
89 | } | 86 | } |
90 | 87 | ||
@@ -133,17 +130,6 @@ void LLPrefsColors::updateFriendsCheck() | |||
133 | getChild<LLColorSwatchCtrl>("FriendsChatColor")->setEnabled(childGetValue("HighlightFriendsChat")); | 130 | getChild<LLColorSwatchCtrl>("FriendsChatColor")->setEnabled(childGetValue("HighlightFriendsChat")); |
134 | } | 131 | } |
135 | 132 | ||
136 | // static | ||
137 | void LLPrefsColors::onCommitCheckClient(LLUICtrl* ctrl, void* userdata) | ||
138 | { | ||
139 | LLPrefsColors* self = (LLPrefsColors*)userdata; | ||
140 | self->updateClientCheck(); | ||
141 | } | ||
142 | |||
143 | void LLPrefsColors::updateClientCheck() | ||
144 | { | ||
145 | getChild<LLColorSwatchCtrl>("client_tag_color")->setEnabled(childGetValue("client_name_color_checkt")); | ||
146 | } | ||
147 | 133 | ||
148 | void LLPrefsColors::cancel() | 134 | void LLPrefsColors::cancel() |
149 | { | 135 | { |
@@ -195,7 +181,5 @@ void LLPrefsColors::apply() | |||
195 | 181 | ||
196 | gSavedSettings.setColor4("EffectColor", childGetValue("effect_color_swatch")); | 182 | gSavedSettings.setColor4("EffectColor", childGetValue("effect_color_swatch")); |
197 | 183 | ||
198 | gSavedSettings.setBOOL("ShowClientColor", childGetValue("client_name_color_check")); | ||
199 | |||
200 | refreshColors(); // member values become the official values and cancel becomes a no-op. | 184 | refreshColors(); // member values become the official values and cancel becomes a no-op. |
201 | } | 185 | } |