diff options
author | Nyx (Neal Orman) <nyx@lindenlab.com> | 2009-11-20 17:52:17 -0500 |
---|---|---|
committer | Nyx (Neal Orman) <nyx@lindenlab.com> | 2009-11-20 17:52:17 -0500 |
commit | 52c27b99b839cccab09b61c5b02ced2e9df0a04b (patch) | |
tree | dec26eba71ecf235519dbb0a4a112ec3a32eaae5 /indra/newview/llpanelavatar.cpp | |
parent | ac78a7e8b85dff5c896d31ca06315c2e9775c67e (diff) |
EXT-829 share button in people panel is inactive
First pass at getting share buttons in the three places we need them:
person's profile
IM window
people panel
Only UI changes so far, functionality in a future checkin.
Will be reviewed before pushing.
--HG--
branch : avatar-pipeline
Diffstat (limited to 'indra/newview/llpanelavatar.cpp')
-rw-r--r-- | indra/newview/llpanelavatar.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llpanelavatar.cpp b/indra/newview/llpanelavatar.cpp index 2254684f21..7f4a22aaf7 100644 --- a/indra/newview/llpanelavatar.cpp +++ b/indra/newview/llpanelavatar.cpp @@ -339,6 +339,7 @@ BOOL LLPanelAvatarProfile::postBuild() LLUICtrl::CommitCallbackRegistry::ScopedRegistrar registrar; registrar.add("Profile.Pay", boost::bind(&LLPanelAvatarProfile::pay, this)); + registrar.add("Profile.Share", boost::bind(&LLPanelAvatarProfile::share, this)); mProfileMenu = LLUICtrlFactory::getInstance()->createFromFile<LLToggleableMenu>("menu_profile_overflow.xml", gMenuHolder, LLViewerMenuHolderGL::child_registry_t::instance()); @@ -525,6 +526,11 @@ void LLPanelAvatarProfile::pay() LLAvatarActions::pay(getAvatarId()); } +void LLPanelAvatarProfile::share() +{ + LLAvatarActions::share(getAvatarID()); +} + void LLPanelAvatarProfile::onUrlTextboxClicked(const std::string& url) { LLWeb::loadURL(url); |