diff options
Diffstat (limited to 'linden/indra/newview/llmediaremotectrl.cpp')
-rw-r--r-- | linden/indra/newview/llmediaremotectrl.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/linden/indra/newview/llmediaremotectrl.cpp b/linden/indra/newview/llmediaremotectrl.cpp index 401fc7e..61c0042 100644 --- a/linden/indra/newview/llmediaremotectrl.cpp +++ b/linden/indra/newview/llmediaremotectrl.cpp | |||
@@ -74,6 +74,9 @@ void LLMediaRemoteCtrl::build() | |||
74 | 74 | ||
75 | BOOL LLMediaRemoteCtrl::postBuild() | 75 | BOOL LLMediaRemoteCtrl::postBuild() |
76 | { | 76 | { |
77 | mControls = getChild<LLPanel>("media_controls"); | ||
78 | llassert_always(mControls); | ||
79 | |||
77 | childSetAction("media_play",LLOverlayBar::toggleMediaPlay,this); | 80 | childSetAction("media_play",LLOverlayBar::toggleMediaPlay,this); |
78 | childSetAction("music_play",LLOverlayBar::toggleMusicPlay,this); | 81 | childSetAction("music_play",LLOverlayBar::toggleMusicPlay,this); |
79 | childSetAction("media_stop",LLOverlayBar::mediaStop,this); | 82 | childSetAction("media_stop",LLOverlayBar::mediaStop,this); |
@@ -132,7 +135,7 @@ void LLMediaRemoteCtrl::setToolTip(const LLString& msg) | |||
132 | LLString mime_type = LLMIMETypes::translate(LLViewerMedia::getMimeType()); | 135 | LLString mime_type = LLMIMETypes::translate(LLViewerMedia::getMimeType()); |
133 | LLString tool_tip = LLMIMETypes::findToolTip(LLViewerMedia::getMimeType()); | 136 | LLString tool_tip = LLMIMETypes::findToolTip(LLViewerMedia::getMimeType()); |
134 | LLString play_tip = LLMIMETypes::findPlayTip(LLViewerMedia::getMimeType()); | 137 | LLString play_tip = LLMIMETypes::findPlayTip(LLViewerMedia::getMimeType()); |
135 | // childSetToolTip("media_stop", getString("stop_label") + "\n" + tool_tip); | 138 | // childSetToolTip("media_stop", mControls->getString("stop_label") + "\n" + tool_tip); |
136 | childSetToolTip("media_icon", tool_tip); | 139 | childSetToolTip("media_icon", tool_tip); |
137 | childSetToolTip("media_play", play_tip); | 140 | childSetToolTip("media_play", play_tip); |
138 | } | 141 | } |
@@ -151,7 +154,7 @@ void LLMediaRemoteCtrl::enableMediaButtons() | |||
151 | LLString media_type = "none/none"; | 154 | LLString media_type = "none/none"; |
152 | 155 | ||
153 | // Put this in xui file | 156 | // Put this in xui file |
154 | LLString media_url = getString("default_tooltip_label"); | 157 | LLString media_url = mControls->getString("default_tooltip_label"); |
155 | LLParcel* parcel = gParcelMgr->getAgentParcel(); | 158 | LLParcel* parcel = gParcelMgr->getAgentParcel(); |
156 | 159 | ||
157 | if (gSavedSettings.getBOOL("AudioStreamingVideo")) | 160 | if (gSavedSettings.getBOOL("AudioStreamingVideo")) |
@@ -160,7 +163,7 @@ void LLMediaRemoteCtrl::enableMediaButtons() | |||
160 | { | 163 | { |
161 | // Set the tooltip | 164 | // Set the tooltip |
162 | // Put this text into xui file | 165 | // Put this text into xui file |
163 | media_url = parcel->getObscureMedia() ? getString("media_hidden_label") : parcel->getMediaURL(); | 166 | media_url = parcel->getObscureMedia() ? mControls->getString("media_hidden_label") : parcel->getMediaURL(); |
164 | media_type = parcel->getMediaType(); | 167 | media_type = parcel->getMediaType(); |
165 | 168 | ||
166 | play_media_enabled = true; | 169 | play_media_enabled = true; |