summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelpeople.cpp
diff options
context:
space:
mode:
authorGilbert Gonzales <gilbert@lindenlab.com>2013-04-01 23:48:51 -0700
committerGilbert Gonzales <gilbert@lindenlab.com>2013-04-01 23:48:51 -0700
commit2c183a805d9eb5fcea03d67bfc1ad26ab4c09a8d (patch)
tree9c8cfb0648b5de4981765b7edca4b4c91f8d243a /indra/newview/llpanelpeople.cpp
parentdff338462433467f29bf7ee78dbf9877759dedde (diff)
removing the facebook test label which appends friends names. Now using the avatar list widgit.
Diffstat (limited to 'indra/newview/llpanelpeople.cpp')
-rw-r--r--indra/newview/llpanelpeople.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/indra/newview/llpanelpeople.cpp b/indra/newview/llpanelpeople.cpp
index 05dcdd97fa..c7e10d67db 100644
--- a/indra/newview/llpanelpeople.cpp
+++ b/indra/newview/llpanelpeople.cpp
@@ -545,7 +545,6 @@ LLPanelPeople::LLPanelPeople()
mNearbyList(NULL),
mRecentList(NULL),
mGroupList(NULL),
- mFbcTestText(NULL),
mNearbyGearButton(NULL),
mFriendsGearButton(NULL),
mGroupsGearButton(NULL),
@@ -648,7 +647,6 @@ BOOL LLPanelPeople::postBuild()
mOnlineFriendList->setContextMenu(&LLPanelPeopleMenus::gNearbyMenu);
LLPanel * social_tab = getChild<LLPanel>(FBCTEST_TAB_NAME);
- social_tab->setVisibleCallback(boost::bind(&Updater::setActive, mFbcTestListUpdater, _2));
mFacebookFriends = social_tab->getChild<LLAvatarListSocial>("facebook_friends");
setSortOrder(mRecentList, (ESortOrder)gSavedSettings.getU32("RecentPeopleSortOrder"), false);
@@ -885,9 +883,6 @@ void LLPanelPeople::updateRecentList()
void LLPanelPeople::updateFbcTestList()
{
- if (!mFbcTestText)
- return;
-
if (mFbcTestBrowserHandle.get())
{
// get the browser data (from the title bar, of course!)
@@ -899,15 +894,13 @@ void LLPanelPeople::updateFbcTestList()
// success! :)
if (title[1] == ')')
{
- mFbcTestText->setText(std::string("okay, now we can get the list of friends!"));
-
// get the friends
getFacebookFriends();
}
// failure :(
else if (title[1] == '(')
{
- mFbcTestText->setText(std::string("hmm, the authentication failed somehow"));
+ llinfos << "authentication failed" << llendl;
}
// close the browser window
@@ -1678,11 +1671,9 @@ void LLPanelPeople::showFacebookFriends(const LLSD& friends)
std::string name = (*i)["name"].asString();
std::string id = (*i)["id"].asString();
- text += "\n" + name + " (" + id + ")";
+ text = name + " (" + id + ")";
+ mFacebookFriends->addSocialItem(LLUUID(NULL), text, false);
}
-
- // display the facebook friend data on the test text box
- mFbcTestText->setText(text);
}
class FacebookLoginResponder : public LLHTTPClient::Responder