diff options
author | Kent Quirk <q@lindenlab.com> | 2009-01-05 18:59:12 +0000 |
---|---|---|
committer | Kent Quirk <q@lindenlab.com> | 2009-01-05 18:59:12 +0000 |
commit | 667ca55bad0108c4bdf8f007b89e1a52fc766aad (patch) | |
tree | 7bd62ac8d9af079c3994565f3f200ccc250bbc28 /indra/newview/llfloatertopobjects.cpp | |
parent | 95f365789f4cebc7bd97ccefd538f14d481a8373 (diff) |
svn merge -r106715:HEAD svn+ssh://svn.lindenlab.com/svn/linden/branches/q/notifications-merge-r106715 . QAR-1149 -- Final merge of notifications to trunk.
Diffstat (limited to 'indra/newview/llfloatertopobjects.cpp')
-rw-r--r-- | indra/newview/llfloatertopobjects.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/indra/newview/llfloatertopobjects.cpp b/indra/newview/llfloatertopobjects.cpp index eea6b40cba..3b79f58db7 100644 --- a/indra/newview/llfloatertopobjects.cpp +++ b/indra/newview/llfloatertopobjects.cpp @@ -353,17 +353,19 @@ void LLFloaterTopObjects::doToObjects(int action, bool all) } //static -void LLFloaterTopObjects::callbackReturnAll(S32 option, void* userdata) +bool LLFloaterTopObjects::callbackReturnAll(const LLSD& notification, const LLSD& response) { + S32 option = LLNotification::getSelectedOption(notification, response); if (option == 0) { sInstance->doToObjects(ACTION_RETURN, true); } + return false; } void LLFloaterTopObjects::onReturnAll(void* data) { - gViewerWindow->alertXml("ReturnAllTopObjects", callbackReturnAll, NULL); + LLNotifications::instance().add("ReturnAllTopObjects", LLSD(), LLSD(), &callbackReturnAll); } @@ -374,17 +376,19 @@ void LLFloaterTopObjects::onReturnSelected(void* data) //static -void LLFloaterTopObjects::callbackDisableAll(S32 option, void* userdata) +bool LLFloaterTopObjects::callbackDisableAll(const LLSD& notification, const LLSD& response) { + S32 option = LLNotification::getSelectedOption(notification, response); if (option == 0) { sInstance->doToObjects(ACTION_DISABLE, true); } + return false; } void LLFloaterTopObjects::onDisableAll(void* data) { - gViewerWindow->alertXml("DisableAllTopObjects", callbackDisableAll, NULL); + LLNotifications::instance().add("DisableAllTopObjects", LLSD(), LLSD(), callbackDisableAll); } void LLFloaterTopObjects::onDisableSelected(void* data) |