Removed LLUICtrl::setDoubleClickCallback and LLPanel::childSetDoubleClickCallback as they aren't used/needed and complicate things. Added LLPanel::childSetAction overload that accepts boost::singal2::signal (for boost::bind). Now using boost::function for various callbacks in LLScrollListCtrl (for boost::bind).
This commit is contained in:
@@ -582,11 +582,10 @@ BOOL LLPanelAvatarSecondLife::postBuild(void)
|
||||
childSetAction("Offer Teleport...", LLPanelAvatar::onClickOfferTeleport,
|
||||
getPanelAvatar() );
|
||||
|
||||
childSetDoubleClickCallback("groups", onDoubleClickGroup, this );
|
||||
getChild<LLScrollListCtrl>("groups")->setDoubleClickCallback(boost::bind(&LLPanelAvatarSecondLife::onDoubleClickGroup,this));
|
||||
|
||||
childSetAction("bigimg", onClickImage, this);
|
||||
|
||||
|
||||
getChild<LLTextureCtrl>("img")->setFallbackImageName("default_profile_picture.j2c");
|
||||
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user