diff options
| -rw-r--r-- | indra/newview/llnotificationofferhandler.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llviewermessage.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/notifications.xml | 8 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/panel_notification.xml | 4 | 
4 files changed, 13 insertions, 7 deletions
| diff --git a/indra/newview/llnotificationofferhandler.cpp b/indra/newview/llnotificationofferhandler.cpp index 471dd28426..94e733913d 100644 --- a/indra/newview/llnotificationofferhandler.cpp +++ b/indra/newview/llnotificationofferhandler.cpp @@ -96,11 +96,11 @@ bool LLOfferHandler::processNotification(const LLSD& notify)  		if (!LLIMMgr::instance().hasSession(session_id))  		{  			session_id = LLIMMgr::instance().addSession( -					notification->getSubstitutions()["NAME"], IM_NOTHING_SPECIAL, +					notification->getSubstitutions()["OBJECTFROMNAME"], IM_NOTHING_SPECIAL,  					notification->getPayload()["from_id"]);  		}  		LLIMMgr::instance().addMessage(session_id, LLUUID(), -				notification->getSubstitutions()["NAME"], +				notification->getSubstitutions()["OBJECTFROMNAME"],  				notification->getMessage());  		LLToastNotifyPanel* notify_box = new LLToastNotifyPanel(notification); diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 4088eafe16..b1efec83e6 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -1365,7 +1365,9 @@ void inventory_offer_handler(LLOfferInfo* info, BOOL from_task)  	payload["from_id"] = info->mFromID;  	args["OBJECTFROMNAME"] = info->mFromName; -	args["NAME"] = info->mFromName; +	args["NAME"] = LLSLURL::buildCommand("agent", info->mFromID, "about"); +	std::string verb = "highlight?name=" + msg; +	args["ITEM_SLURL"] = LLSLURL::buildCommand("inventory", info->mObjectID, verb.c_str());  	LLNotification::Params p("ObjectGiveItem");  	p.substitutions(args).payload(payload).functor.function(boost::bind(&LLOfferInfo::inventory_offer_callback, info, _1, _2)); diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml index ff0cd7ffeb..9c4e394f0d 100644 --- a/indra/newview/skins/default/xui/en/notifications.xml +++ b/indra/newview/skins/default/xui/en/notifications.xml @@ -4957,8 +4957,9 @@ No valid parcel could be found.    <notification     icon="notify.tga"     name="ObjectGiveItem" -   type="notify"> -An object named [OBJECTFROMNAME] owned by [FIRST] [LAST] has given you a [OBJECTTYPE] named [OBJECTNAME]. +   type="offer"> +An object named [OBJECTFROMNAME] owned by [NAME] has offered you [OBJECTTYPE]: +[ITEM_SLURL]      <form name="form">        <button         index="0" @@ -5000,7 +5001,8 @@ An object named [OBJECTFROMNAME] owned by (an unknown Resident) has given you a     icon="notify.tga"     name="UserGiveItem"     type="offer"> -[NAME] has given you a [OBJECTTYPE] named '[OBJECTNAME]'. +[NAME] has offered you [OBJECTTYPE]: +[ITEM_SLURL]      <form name="form">        <button         index="0" diff --git a/indra/newview/skins/default/xui/en/panel_notification.xml b/indra/newview/skins/default/xui/en/panel_notification.xml index 34a185fb44..40f8da0c2c 100644 --- a/indra/newview/skins/default/xui/en/panel_notification.xml +++ b/indra/newview/skins/default/xui/en/panel_notification.xml @@ -74,7 +74,9 @@        top="10"        visible="false"        width="285" -      wrap="true"/> +      wrap="true" +      parse_highlights="true" +      allow_html="true"/>    </panel>    <panel      background_visible="false" | 
