summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatersocial.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2013-06-24 17:03:37 -0700
committerMerov Linden <merov@lindenlab.com>2013-06-24 17:03:37 -0700
commit656903d77f8ccfe24fb907287bcafe416bf0375d (patch)
treeb33409ed45822ebf2dbb281381e3474bc9efc4b3 /indra/newview/llfloatersocial.cpp
parente2a7280918665222db3357a4d7566dbdc5d959f2 (diff)
parent68fa34965daa5bd65aea5cb1f4dc4554e7d9f70f (diff)
Pull merge from lindenlab/viewer-fbc
Diffstat (limited to 'indra/newview/llfloatersocial.cpp')
-rw-r--r--indra/newview/llfloatersocial.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/indra/newview/llfloatersocial.cpp b/indra/newview/llfloatersocial.cpp
index b14098eb77..8e481f9e57 100644
--- a/indra/newview/llfloatersocial.cpp
+++ b/indra/newview/llfloatersocial.cpp
@@ -38,6 +38,7 @@
#include "llviewerregion.h"
#include "llviewercontrol.h"
+static LLRegisterPanelClassWrapper<LLSocialStatusPanel> t_panel_status("llsocialstatuspanel");
static LLRegisterPanelClassWrapper<LLSocialPhotoPanel> t_panel_photo("llsocialphotopanel");
static LLRegisterPanelClassWrapper<LLSocialCheckinPanel> t_panel_checkin("llsocialcheckinpanel");
@@ -54,6 +55,23 @@ std::string get_map_url()
return map_url;
}
+LLSocialStatusPanel::LLSocialStatusPanel()
+{
+ mCommitCallbackRegistrar.add("SocialSharing.SendStatus", boost::bind(&LLSocialStatusPanel::onSend, this));
+}
+
+void LLSocialStatusPanel::onSend()
+{
+ std::string message = getChild<LLUICtrl>("message")->getValue().asString();
+ LLFacebookConnect::instance().updateStatus(message);
+
+ LLFloater* floater = getParentByType<LLFloater>();
+ if (floater)
+ {
+ floater->closeFloater();
+ }
+}
+
LLSocialPhotoPanel::LLSocialPhotoPanel()
{
mCommitCallbackRegistrar.add("PostToFacebook.Send", boost::bind(&LLSocialPhotoPanel::onSend, this));