From 73d07c93255a24f0ea23453f8ed180ce1d63a78a Mon Sep 17 00:00:00 2001 From: Alexei Arabadji Date: Mon, 12 Apr 2010 17:09:50 +0300 Subject: fixed major EXT-6593 "New notifications arrived while you were away" is bold and doesn't fit on toast * Unbolded startup toast message text; * Avoided increasing complexity of LLToastNotifyPanel class that in future should be decoupled on separate independent toast panel implementations and added LLPanelGenericTip class to represent generic notifytip panels. reviewed by Vadim Savchuk and Mike Antipov at https://codereview.productengine.com/secondlife/r/214/ --HG-- branch : product-engine --- indra/newview/llnotificationtiphandler.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'indra/newview/llnotificationtiphandler.cpp') diff --git a/indra/newview/llnotificationtiphandler.cpp b/indra/newview/llnotificationtiphandler.cpp index afc00bf7ef..407de79c89 100644 --- a/indra/newview/llnotificationtiphandler.cpp +++ b/indra/newview/llnotificationtiphandler.cpp @@ -157,6 +157,7 @@ bool LLTipHandler::processNotification(const LLSD& notify) } LLToastPanel* notify_box = NULL; + // TODO: this should be implemented in LLToastPanel::buidPanelFromNotification if("FriendOffline" == notification->getName() || "FriendOnline" == notification->getName()) { LLOnlineStatusToast::Params p; @@ -166,6 +167,14 @@ bool LLTipHandler::processNotification(const LLSD& notify) notify_box = new LLOnlineStatusToast(p); } else + { + notify_box = LLToastPanel::buidPanelFromNotification(notification); + } + + // TODO: this if statement should be removed after modification of + // LLToastPanel::buidPanelFromNotification() to allow create generic tip panel + // for all tip notifications except FriendOnline and FriendOffline + if (notify_box == NULL) { notify_box = new LLToastNotifyPanel(notification); } -- cgit v1.2.3