mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-17 23:52:30 +00:00
* Fix TextElement* to use rpc::target_type.
* Moved most of src/ui/download.cc to use commands for TextElements. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@967 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -51,7 +51,7 @@ TextElementList::clear() {
|
||||
}
|
||||
|
||||
char*
|
||||
TextElementList::print(char* first, char* last, Canvas::attributes_list* attributes, void* object) {
|
||||
TextElementList::print(char* first, char* last, Canvas::attributes_list* attributes, rpc::target_type target) {
|
||||
int column = m_columnWidth != NULL ? m_column : 0;
|
||||
|
||||
// Call print for each element even if first == last so that any
|
||||
@@ -63,7 +63,7 @@ TextElementList::print(char* first, char* last, Canvas::attributes_list* attribu
|
||||
if (columnEnd < first || columnEnd > last)
|
||||
throw torrent::internal_error("TextElementList::print(...) columnEnd < first || columnEnd > last.");
|
||||
|
||||
first = (*itr)->print(first, columnEnd, attributes, object);
|
||||
first = (*itr)->print(first, columnEnd, attributes, target);
|
||||
|
||||
if (first > columnEnd)
|
||||
throw torrent::internal_error("TextElementList::print(...) first > columnEnd.");
|
||||
@@ -72,7 +72,7 @@ TextElementList::print(char* first, char* last, Canvas::attributes_list* attribu
|
||||
first = columnEnd;
|
||||
|
||||
} else {
|
||||
first = (*itr)->print(first, last, attributes, object);
|
||||
first = (*itr)->print(first, last, attributes, target);
|
||||
}
|
||||
|
||||
return first;
|
||||
|
||||
Reference in New Issue
Block a user