mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 05:02:31 +00:00
* Fixed download menu.
* Use bold when ElementMenu loses focus. * Added an exit slot to ElementBase and bind to that from withing the subclasses. * Moved peer info to ElementPeerList, accessed by the right arrow. Download info will be moved to a seperate Element. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@752 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -59,4 +59,20 @@ TextElementList::print(char* first, const char* last, Canvas::attributes_list* a
|
||||
return first;
|
||||
}
|
||||
|
||||
TextElementList::extent_type
|
||||
TextElementList::max_length() {
|
||||
size_type length = 0;
|
||||
|
||||
for (iterator itr = begin(); itr != end(); ++itr) {
|
||||
size_type l = (*itr)->max_length();
|
||||
|
||||
if (l == extent_full)
|
||||
return extent_full;
|
||||
|
||||
length += l;
|
||||
}
|
||||
|
||||
return length;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user