summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llfacebookconnect.cpp37
-rw-r--r--indra/newview/skins/default/xui/en/floater_facebook.xml3
-rw-r--r--indra/newview/skins/default/xui/en/floater_flickr.xml3
-rw-r--r--indra/newview/skins/default/xui/en/floater_twitter.xml3
4 files changed, 13 insertions, 33 deletions
diff --git a/indra/newview/llfacebookconnect.cpp b/indra/newview/llfacebookconnect.cpp
index eeb28376a9..eb044d90cd 100644
--- a/indra/newview/llfacebookconnect.cpp
+++ b/indra/newview/llfacebookconnect.cpp
@@ -83,11 +83,7 @@ public:
if (tokens.size() >= 2 && tokens[1].asString() == "flickr")
{
// this command probably came from the flickr_web browser, so close it
- LLFloater* flickr_web = LLFloaterReg::getInstance("flickr_web");
- if (flickr_web)
- {
- flickr_web->closeFloater();
- }
+ LLFloaterReg::hideInstance("flickr_web");
// connect to flickr
if (query_map.has("oauth_token"))
@@ -99,11 +95,7 @@ public:
else if (tokens.size() >= 2 && tokens[1].asString() == "twitter")
{
// this command probably came from the twitter_web browser, so close it
- LLFloater* twitter_web = LLFloaterReg::getInstance("twitter_web");
- if (twitter_web)
- {
- twitter_web->closeFloater();
- }
+ LLFloaterReg::hideInstance("twitter_web");
// connect to twitter
if (query_map.has("oauth_token"))
@@ -115,11 +107,7 @@ public:
else //if (tokens.size() >= 2 && tokens[1].asString() == "facebook")
{
// this command probably came from the fbc_web browser, so close it
- LLFloater* fbc_web = LLFloaterReg::getInstance("fbc_web");
- if (fbc_web)
- {
- fbc_web->closeFloater();
- }
+ LLFloaterReg::hideInstance("fbc_web");
// connect to facebook
if (query_map.has("code"))
@@ -152,11 +140,7 @@ public:
if (tokens.size() >= 2 && tokens[1].asString() == "flickr")
{
// this command probably came from the flickr_web browser, so close it
- LLFloater* flickr_web = LLFloaterReg::getInstance("flickr_web");
- if (flickr_web)
- {
- flickr_web->closeFloater();
- }
+ LLFloaterReg::hideInstance("flickr_web");
// connect to flickr
if (query_map.has("oauth_token"))
@@ -168,11 +152,7 @@ public:
else if (tokens.size() >= 2 && tokens[1].asString() == "twitter")
{
// this command probably came from the twitter_web browser, so close it
- LLFloater* twitter_web = LLFloaterReg::getInstance("twitter_web");
- if (twitter_web)
- {
- twitter_web->closeFloater();
- }
+ LLFloaterReg::hideInstance("twitter_web");
// connect to twitter
if (query_map.has("oauth_token"))
@@ -184,11 +164,7 @@ public:
else //if (tokens.size() >= 2 && tokens[1].asString() == "facebook")
{
// this command probably came from the fbc_web browser, so close it
- LLFloater* fbc_web = LLFloaterReg::getInstance("fbc_web");
- if (fbc_web)
- {
- fbc_web->closeFloater();
- }
+ LLFloaterReg::hideInstance("fbc_web");
// connect to facebook
if (query_map.has("code"))
@@ -468,6 +444,7 @@ std::string LLFacebookConnect::getFacebookConnectURL(const std::string& route, b
LLViewerRegion *regionp = gAgent.getRegion();
if (regionp)
{
+ //url = "http://pdp15.lindenlab.com/facebook/agent/" + gAgentID.asString(); // TEMPORARY FOR TESTING - CHO
url = regionp->getCapability("FacebookConnect");
url += route;
diff --git a/indra/newview/skins/default/xui/en/floater_facebook.xml b/indra/newview/skins/default/xui/en/floater_facebook.xml
index 820e105e53..c1ff8571e9 100644
--- a/indra/newview/skins/default/xui/en/floater_facebook.xml
+++ b/indra/newview/skins/default/xui/en/floater_facebook.xml
@@ -28,7 +28,8 @@
tab_position="top"
top="7"
height="437"
- halign="center">
+ halign="center"
+ use_highlighting_on_hover="true">
<panel
filename="panel_facebook_status.xml"
class="llfacebookstatuspanel"
diff --git a/indra/newview/skins/default/xui/en/floater_flickr.xml b/indra/newview/skins/default/xui/en/floater_flickr.xml
index 57014f8427..1a9ffd0489 100644
--- a/indra/newview/skins/default/xui/en/floater_flickr.xml
+++ b/indra/newview/skins/default/xui/en/floater_flickr.xml
@@ -28,7 +28,8 @@
tab_position="top"
top="7"
height="577"
- halign="center">
+ halign="center"
+ use_highlighting_on_hover="true">
<panel
filename="panel_flickr_photo.xml"
class="llflickrphotopanel"
diff --git a/indra/newview/skins/default/xui/en/floater_twitter.xml b/indra/newview/skins/default/xui/en/floater_twitter.xml
index 751914141c..aa5bfce2e9 100644
--- a/indra/newview/skins/default/xui/en/floater_twitter.xml
+++ b/indra/newview/skins/default/xui/en/floater_twitter.xml
@@ -28,7 +28,8 @@
tab_position="top"
top="7"
height="457"
- halign="center">
+ halign="center"
+ use_highlighting_on_hover="true">
<panel
filename="panel_twitter_photo.xml"
class="lltwitterphotopanel"