diff options
| author | CG Linden <cg@lindenlab.com> | 2010-01-29 16:29:12 -0800 | 
|---|---|---|
| committer | CG Linden <cg@lindenlab.com> | 2010-01-29 16:29:12 -0800 | 
| commit | f6a59081a7959e21f952a93bc3809315f2fa361e (patch) | |
| tree | d77373c86810e505892cfb483001fe535201db46 /indra/newview/llchiclet.cpp | |
| parent | b8856efd5ff0e4899bb369dfd0815e824cd3a432 (diff) | |
| parent | 682f8afcc073b62fed64a3fd2adc5f65793e1f3e (diff) | |
Merge in latest viewer-2-0 changes.
Diffstat (limited to 'indra/newview/llchiclet.cpp')
| -rw-r--r-- | indra/newview/llchiclet.cpp | 26 | 
1 files changed, 8 insertions, 18 deletions
| diff --git a/indra/newview/llchiclet.cpp b/indra/newview/llchiclet.cpp index f1de4e2982..f646bcccb5 100644 --- a/indra/newview/llchiclet.cpp +++ b/indra/newview/llchiclet.cpp @@ -459,6 +459,14 @@ LLIMChiclet::LLIMChiclet(const LLIMChiclet::Params& p)  	enableCounterControl(p.enable_counter);  } +/* virtual*/ +BOOL LLIMChiclet::postBuild() +{ +	mChicletButton = getChild<LLButton>("chiclet_button"); +	mChicletButton->setCommitCallback(boost::bind(&LLIMChiclet::onMouseDown, this)); +	mChicletButton->setDoubleClickCallback(boost::bind(&LLIMChiclet::onMouseDown, this)); +	return TRUE; +}  void LLIMChiclet::setShowSpeaker(bool show)  {  	bool needs_resize = getShowSpeaker() != show; @@ -583,12 +591,6 @@ void LLIMChiclet::setToggleState(bool toggle)  	mChicletButton->setToggleState(toggle);  } -BOOL LLIMChiclet::handleMouseDown(S32 x, S32 y, MASK mask) -{ -	onMouseDown(); -	return LLChiclet::handleMouseDown(x, y, mask); -} -  void LLIMChiclet::draw()  {  	LLUICtrl::draw(); @@ -1905,12 +1907,6 @@ void LLScriptChiclet::onMouseDown()  	LLScriptFloaterManager::getInstance()->toggleScriptFloater(getSessionId());  } -BOOL LLScriptChiclet::handleMouseDown(S32 x, S32 y, MASK mask) -{ -	onMouseDown(); -	return LLChiclet::handleMouseDown(x, y, mask); -} -  //////////////////////////////////////////////////////////////////////////  //////////////////////////////////////////////////////////////////////////  ////////////////////////////////////////////////////////////////////////// @@ -1975,10 +1971,4 @@ void LLInvOfferChiclet::onMouseDown()  	LLScriptFloaterManager::instance().toggleScriptFloater(getSessionId());  } -BOOL LLInvOfferChiclet::handleMouseDown(S32 x, S32 y, MASK mask) -{ -	onMouseDown(); -	return LLChiclet::handleMouseDown(x, y, mask); -} -  // EOF | 
