Skip to content
Snippets Groups Projects
Commit de89552d authored by Cho's avatar Cho
Browse files

Added #SecondLife to default Twitter status for ACME-1319

parent 51844473
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,7 @@ static LLRegisterPanelClassWrapper<LLTwitterAccountPanel> t_panel_account("lltwi ...@@ -56,6 +56,7 @@ static LLRegisterPanelClassWrapper<LLTwitterAccountPanel> t_panel_account("lltwi
const S32 MAX_POSTCARD_DATASIZE = 1024 * 1024; // one megabyte const S32 MAX_POSTCARD_DATASIZE = 1024 * 1024; // one megabyte
const std::string DEFAULT_PHOTO_LOCATION_URL = "http://maps.secondlife.com/"; const std::string DEFAULT_PHOTO_LOCATION_URL = "http://maps.secondlife.com/";
const std::string DEFAULT_PHOTO_QUERY_PARAMETERS = "?sourceid=slshare_photo&utm_source=twitter&utm_medium=photo&utm_campaign=slshare"; const std::string DEFAULT_PHOTO_QUERY_PARAMETERS = "?sourceid=slshare_photo&utm_source=twitter&utm_medium=photo&utm_campaign=slshare";
const std::string DEFAULT_STATUS_TEXT = " #SecondLife";
/////////////////////////// ///////////////////////////
//LLTwitterPhotoPanel/////// //LLTwitterPhotoPanel///////
...@@ -100,6 +101,7 @@ BOOL LLTwitterPhotoPanel::postBuild() ...@@ -100,6 +101,7 @@ BOOL LLTwitterPhotoPanel::postBuild()
mThumbnailPlaceholder = getChild<LLUICtrl>("thumbnail_placeholder"); mThumbnailPlaceholder = getChild<LLUICtrl>("thumbnail_placeholder");
mStatusCounterLabel = getChild<LLUICtrl>("status_counter_label"); mStatusCounterLabel = getChild<LLUICtrl>("status_counter_label");
mStatusTextBox = getChild<LLUICtrl>("photo_status"); mStatusTextBox = getChild<LLUICtrl>("photo_status");
mStatusTextBox->setValue(DEFAULT_STATUS_TEXT);
mLocationCheckbox = getChild<LLUICtrl>("add_location_cb"); mLocationCheckbox = getChild<LLUICtrl>("add_location_cb");
mLocationCheckbox->setCommitCallback(boost::bind(&LLTwitterPhotoPanel::onAddLocationToggled, this)); mLocationCheckbox->setCommitCallback(boost::bind(&LLTwitterPhotoPanel::onAddLocationToggled, this));
mPhotoCheckbox = getChild<LLUICtrl>("add_photo_cb"); mPhotoCheckbox = getChild<LLUICtrl>("add_photo_cb");
...@@ -351,7 +353,7 @@ void LLTwitterPhotoPanel::sendPhoto() ...@@ -351,7 +353,7 @@ void LLTwitterPhotoPanel::sendPhoto()
void LLTwitterPhotoPanel::clearAndClose() void LLTwitterPhotoPanel::clearAndClose()
{ {
mStatusTextBox->setValue(""); mStatusTextBox->setValue(DEFAULT_STATUS_TEXT);
LLFloater* floater = getParentByType<LLFloater>(); LLFloater* floater = getParentByType<LLFloater>();
if (floater) if (floater)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment