diff options
author | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
commit | ce28e056c20bf2723f565bbf464b87781ec248a2 (patch) | |
tree | ef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llpreviewsound.cpp | |
parent | Second Life viewer sources 1.19.1.4b (diff) | |
download | meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2 meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz |
Second Life viewer sources 1.20.2
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpreviewsound.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/newview/llpreviewsound.cpp b/linden/indra/newview/llpreviewsound.cpp index 212ceb9..9ba6fd5 100644 --- a/linden/indra/newview/llpreviewsound.cpp +++ b/linden/indra/newview/llpreviewsound.cpp | |||
@@ -41,7 +41,7 @@ | |||
41 | #include "llresmgr.h" | 41 | #include "llresmgr.h" |
42 | #include "llviewercontrol.h" | 42 | #include "llviewercontrol.h" |
43 | #include "llviewermessage.h" // send_guid_sound_trigger | 43 | #include "llviewermessage.h" // send_guid_sound_trigger |
44 | #include "llvieweruictrlfactory.h" | 44 | #include "lluictrlfactory.h" |
45 | 45 | ||
46 | extern LLAudioEngine* gAudiop; | 46 | extern LLAudioEngine* gAudiop; |
47 | extern LLAgent gAgent; | 47 | extern LLAgent gAgent; |
@@ -52,15 +52,15 @@ LLPreviewSound::LLPreviewSound(const std::string& name, const LLRect& rect, cons | |||
52 | LLPreview( name, rect, title, item_uuid, object_uuid) | 52 | LLPreview( name, rect, title, item_uuid, object_uuid) |
53 | { | 53 | { |
54 | 54 | ||
55 | gUICtrlFactory->buildFloater(this,"floater_preview_sound.xml"); | 55 | LLUICtrlFactory::getInstance()->buildFloater(this,"floater_preview_sound.xml"); |
56 | 56 | ||
57 | childSetAction("Sound play btn",&LLPreviewSound::playSound,this); | 57 | childSetAction("Sound play btn",&LLPreviewSound::playSound,this); |
58 | childSetAction("Sound audition btn",&LLPreviewSound::auditionSound,this); | 58 | childSetAction("Sound audition btn",&LLPreviewSound::auditionSound,this); |
59 | 59 | ||
60 | LLButton* button = LLUICtrlFactory::getButtonByName(this, "Sound play btn"); | 60 | LLButton* button = getChild<LLButton>("Sound play btn"); |
61 | button->setSoundFlags(LLView::SILENT); | 61 | button->setSoundFlags(LLView::SILENT); |
62 | 62 | ||
63 | button = LLUICtrlFactory::getButtonByName(this, "Sound audition btn"); | 63 | button = getChild<LLButton>("Sound audition btn"); |
64 | button->setSoundFlags(LLView::SILENT); | 64 | button->setSoundFlags(LLView::SILENT); |
65 | 65 | ||
66 | const LLInventoryItem* item = getItem(); | 66 | const LLInventoryItem* item = getItem(); |