diff options
author | James Cook <james@lindenlab.com> | 2009-11-25 11:51:49 -0800 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2009-11-25 11:51:49 -0800 |
commit | ef46d4077ca4aad322aabfe545885be136577c8a (patch) | |
tree | d5ad52ccec6cd0f0d0e3b9aa134a9068e2827686 /indra/newview/lllocationinputctrl.cpp | |
parent | 446702d7620b124b1f34599e89c5fc6d12ec390d (diff) |
Hook up nav bar For Sale icon to buy land functionality.
Diffstat (limited to 'indra/newview/lllocationinputctrl.cpp')
-rw-r--r-- | indra/newview/lllocationinputctrl.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/lllocationinputctrl.cpp b/indra/newview/lllocationinputctrl.cpp index bb713aba19..45c60df84f 100644 --- a/indra/newview/lllocationinputctrl.cpp +++ b/indra/newview/lllocationinputctrl.cpp @@ -243,6 +243,8 @@ LLLocationInputCtrl::LLLocationInputCtrl(const LLLocationInputCtrl::Params& p) addChild(mAddLandmarkBtn); LLButton::Params for_sale_button = p.for_sale_button; + for_sale_button.click_callback.function( + boost::bind(&LLLocationInputCtrl::onForSaleButtonClicked, this)); mForSaleBtn = LLUICtrlFactory::create<LLButton>( for_sale_button ); // *TODO: Make clickable? addChild(mForSaleBtn); @@ -474,6 +476,11 @@ void LLLocationInputCtrl::onInfoButtonClicked() LLSideTray::getInstance()->showPanel("panel_places", LLSD().insert("type", "agent")); } +void LLLocationInputCtrl::onForSaleButtonClicked() +{ + handle_buy_land(); +} + void LLLocationInputCtrl::onAddLandmarkButtonClicked() { LLViewerInventoryItem* landmark = LLLandmarkActions::findLandmarkForAgentPos(); |