Feed number in notifications
This commit is contained in:
parent
c4990b719c
commit
c642c911fa
4
TODO.txt
4
TODO.txt
|
@ -5,9 +5,9 @@ Important Features:
|
||||||
|
|
||||||
Important improvements:
|
Important improvements:
|
||||||
* Memory leaks
|
* Memory leaks
|
||||||
* ~50kb per feed on download (+2MB w 40 feeds)
|
* ~.05MB per feed on download (+2MB w 40 feeds)
|
||||||
* This leak is in Util.ccp, fetch(). I'm stumped here.
|
* This leak is in Util.ccp, fetch(). I'm stumped here.
|
||||||
* ~20kb per feed on parsing (+1MB w 40 feeds)
|
* ~.02MB per feed on parsing (+1MB w 40 feeds)
|
||||||
* Fix background of Feeds List error status icon (it's black, not transparent)
|
* Fix background of Feeds List error status icon (it's black, not transparent)
|
||||||
* Make UI friendly to whatever font-size you throw at it
|
* Make UI friendly to whatever font-size you throw at it
|
||||||
* Give a max size to the progress label in FeedsView
|
* Give a max size to the progress label in FeedsView
|
||||||
|
|
|
@ -40,9 +40,11 @@ FeedListItem::DrawItem(BView* owner, BRect frame, bool complete)
|
||||||
}
|
}
|
||||||
case kErrorStatus:
|
case kErrorStatus:
|
||||||
{
|
{
|
||||||
owner->MovePenTo(frame.right - imageHeight, frame.top);
|
owner->MovePenTo(frame.right - 20, frame.top + BaselineOffset());
|
||||||
owner->DrawBitmap(loadVectorIcon("error-status", imageHeight,
|
owner->DrawString("X");
|
||||||
imageHeight));
|
// owner->MovePenTo(frame.right - imageHeight, frame.top);
|
||||||
|
// owner->DrawBitmap(loadVectorIcon("error-status", imageHeight,
|
||||||
|
// imageHeight));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,10 +100,10 @@ Notifier::_SendUpdatedNotification()
|
||||||
|
|
||||||
BString entryNum,feedNum = "";
|
BString entryNum,feedNum = "";
|
||||||
entryNum << fTotalEntries;
|
entryNum << fTotalEntries;
|
||||||
feedNum << fUpdatedFeeds->CountItems();
|
feedNum << fUpdatedFeeds->CountItems() - 1;
|
||||||
|
|
||||||
notifyText.ReplaceAll("%n%", entryNum);
|
notifyText.ReplaceAll("%n%", entryNum);
|
||||||
notifyText.ReplaceAll("%m%", feedNum - 1);
|
notifyText.ReplaceAll("%m%", feedNum);
|
||||||
notifyText.ReplaceAll("%source%",
|
notifyText.ReplaceAll("%source%",
|
||||||
((BString*)fUpdatedFeeds->ItemAt(0))->String());
|
((BString*)fUpdatedFeeds->ItemAt(0))->String());
|
||||||
|
|
||||||
|
@ -134,9 +134,9 @@ Notifier::_SendFailedNotification()
|
||||||
notifyText = "Failed to update %source% and %m% others";
|
notifyText = "Failed to update %source% and %m% others";
|
||||||
|
|
||||||
BString feedNum = "";
|
BString feedNum = "";
|
||||||
feedNum << fFailedFeeds->CountItems();
|
feedNum << fFailedFeeds->CountItems() - 1;
|
||||||
|
|
||||||
notifyText.ReplaceAll("%m%", feedNum - 1);
|
notifyText.ReplaceAll("%m%", feedNum);
|
||||||
notifyText.ReplaceAll("%source%",
|
notifyText.ReplaceAll("%source%",
|
||||||
((BString*)fFailedFeeds->ItemAt(0))->String());
|
((BString*)fFailedFeeds->ItemAt(0))->String());
|
||||||
|
|
||||||
|
|
Ŝarĝante…
Reference in New Issue