diff options
author | McCabe Maxsted | 2010-10-16 22:22:10 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-10-16 22:23:29 -0700 |
commit | 88c92afde594eb3dddc4c27d62805e01defd647b (patch) | |
tree | 3059e011d710ad4e5eec52118a149beaa577b1b0 /linden/indra | |
parent | Ported memory leak fix in llcommon/llstring.h from the Ascent Viewer (diff) | |
download | meta-impy-88c92afde594eb3dddc4c27d62805e01defd647b.zip meta-impy-88c92afde594eb3dddc4c27d62805e01defd647b.tar.gz meta-impy-88c92afde594eb3dddc4c27d62805e01defd647b.tar.bz2 meta-impy-88c92afde594eb3dddc4c27d62805e01defd647b.tar.xz |
Ported profile button in friendship requests from Phoenix
Diffstat (limited to 'linden/indra')
-rwxr-xr-x | linden/indra/newview/llviewermessage.cpp | 7 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/notifications.xml | 12 |
2 files changed, 17 insertions, 2 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index a512a66..dbf9d72 100755 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -262,6 +262,13 @@ bool friendship_offer_callback(const LLSD& notification, const LLSD& response) | |||
262 | msg->addUUIDFast(_PREHASH_TransactionID, payload["session_id"]); | 262 | msg->addUUIDFast(_PREHASH_TransactionID, payload["session_id"]); |
263 | msg->sendReliable(LLHost(payload["sender"].asString())); | 263 | msg->sendReliable(LLHost(payload["sender"].asString())); |
264 | break; | 264 | break; |
265 | case 2: | ||
266 | // Push another notification | ||
267 | // Do we need to check for OfferFriendshipNoMessage here ever? -- MC | ||
268 | LLNotifications::instance().add("OfferFriendship", notification["substitutions"], notification["payload"]); | ||
269 | LLURLDispatcher::dispatch(llformat("secondlife:///app/agent/%s/about",payload["from_id"].asString().c_str()), NULL, true); | ||
270 | break; | ||
271 | case 3: | ||
265 | default: | 272 | default: |
266 | // close button probably, possibly timed out | 273 | // close button probably, possibly timed out |
267 | break; | 274 | break; |
diff --git a/linden/indra/newview/skins/default/xui/en-us/notifications.xml b/linden/indra/newview/skins/default/xui/en-us/notifications.xml index d7b078c..333e362 100644 --- a/linden/indra/newview/skins/default/xui/en-us/notifications.xml +++ b/linden/indra/newview/skins/default/xui/en-us/notifications.xml | |||
@@ -6009,8 +6009,12 @@ An object named [OBJECTFROMNAME] owned by (an unknown user) has given you a [OBJ | |||
6009 | index="1" | 6009 | index="1" |
6010 | name="Decline" | 6010 | name="Decline" |
6011 | text="Decline"/> | 6011 | text="Decline"/> |
6012 | <button | ||
6013 | index="2" | ||
6014 | name="Profile" | ||
6015 | text="Profile"/> | ||
6012 | <button | 6016 | <button |
6013 | index="2" | 6017 | index="3" |
6014 | name="Ignore" | 6018 | name="Ignore" |
6015 | text="Ignore"/> | 6019 | text="Ignore"/> |
6016 | </form> | 6020 | </form> |
@@ -6033,7 +6037,11 @@ An object named [OBJECTFROMNAME] owned by (an unknown user) has given you a [OBJ | |||
6033 | name="Decline" | 6037 | name="Decline" |
6034 | text="Decline"/> | 6038 | text="Decline"/> |
6035 | <button | 6039 | <button |
6036 | index="2" | 6040 | index="2" |
6041 | name="Profile" | ||
6042 | text="Profile"/> | ||
6043 | <button | ||
6044 | index="3" | ||
6037 | name="Ignore" | 6045 | name="Ignore" |
6038 | text="Ignore"/> | 6046 | text="Ignore"/> |
6039 | </form> | 6047 | </form> |