diff options
Diffstat (limited to 'linden/indra/newview/llfloaterabout.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterabout.cpp | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/linden/indra/newview/llfloaterabout.cpp b/linden/indra/newview/llfloaterabout.cpp index 47ecdff..ddedef4 100644 --- a/linden/indra/newview/llfloaterabout.cpp +++ b/linden/indra/newview/llfloaterabout.cpp | |||
@@ -48,12 +48,9 @@ | |||
48 | #include "llviewerbuild.h" | 48 | #include "llviewerbuild.h" |
49 | #include "llvieweruictrlfactory.h" | 49 | #include "llvieweruictrlfactory.h" |
50 | #include "llappviewer.h" | 50 | #include "llappviewer.h" |
51 | |||
52 | #if LL_LIBXUL_ENABLED | ||
53 | #include "llmozlib.h" | ||
54 | #endif // LL_LIBXUL_ENABLED | ||
55 | |||
56 | #include "llglheaders.h" | 51 | #include "llglheaders.h" |
52 | #include "llmediamanager.h" | ||
53 | |||
57 | 54 | ||
58 | extern LLCPUInfo gSysCPU; | 55 | extern LLCPUInfo gSysCPU; |
59 | extern LLMemoryInfo gSysMemory; | 56 | extern LLMemoryInfo gSysMemory; |
@@ -96,7 +93,7 @@ LLFloaterAbout::LLFloaterAbout() | |||
96 | if (region) | 93 | if (region) |
97 | { | 94 | { |
98 | const LLVector3d &pos = gAgent.getPositionGlobal(); | 95 | const LLVector3d &pos = gAgent.getPositionGlobal(); |
99 | LLUIString pos_text = childGetText("you_are_at"); | 96 | LLUIString pos_text = getUIString("you_are_at"); |
100 | pos_text.setArg("[POSITION]", | 97 | pos_text.setArg("[POSITION]", |
101 | llformat("%.1f, %.1f, %.1f ", pos.mdV[VX], pos.mdV[VY], pos.mdV[VZ])); | 98 | llformat("%.1f, %.1f, %.1f ", pos.mdV[VX], pos.mdV[VY], pos.mdV[VZ])); |
102 | support.append(pos_text); | 99 | support.append(pos_text); |
@@ -147,11 +144,18 @@ LLFloaterAbout::LLFloaterAbout() | |||
147 | support.append( (const char*) glGetString(GL_VERSION) ); | 144 | support.append( (const char*) glGetString(GL_VERSION) ); |
148 | support.append("\n"); | 145 | support.append("\n"); |
149 | 146 | ||
150 | #if LL_LIBXUL_ENABLED | 147 | LLMediaManager *mgr = LLMediaManager::getInstance(); |
151 | support.append("LLMozLib Version: "); | 148 | if (mgr) |
152 | support.append( (const char*) LLMozLib::getInstance()->getVersion().c_str() ); | 149 | { |
153 | support.append("\n"); | 150 | LLMediaBase *media_source = mgr->createSourceFromMimeType("http", "text/html"); |
154 | #endif // LL_LIBXUL_ENABLED | 151 | if (media_source) |
152 | { | ||
153 | support.append("LLMozLib Version: "); | ||
154 | support.append((const char*) media_source->getVersion().c_str()); | ||
155 | support.append("\n"); | ||
156 | mgr->destroySource(media_source); | ||
157 | } | ||
158 | } | ||
155 | 159 | ||
156 | if (gViewerStats | 160 | if (gViewerStats |
157 | && gPacketsIn > 0) | 161 | && gPacketsIn > 0) |
@@ -173,7 +177,7 @@ LLFloaterAbout::LLFloaterAbout() | |||
173 | // Fix views | 177 | // Fix views |
174 | childDisable("credits_editor"); | 178 | childDisable("credits_editor"); |
175 | 179 | ||
176 | LLTextEditor * support_widget = (LLTextEditor *) getChildByName("support_editor", true); | 180 | LLTextEditor * support_widget = getChild<LLTextEditor>("support_editor", true); |
177 | if (support_widget) | 181 | if (support_widget) |
178 | { | 182 | { |
179 | support_widget->setEnabled( FALSE ); | 183 | support_widget->setEnabled( FALSE ); |