Show
Ignore:
Timestamp:
12/23/07 14:12:23 (4 years ago)
Author:
rakshasa
Message:

* Refactoring utils::Directory.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rtorrent/src/ui/element_string_list.h

    r938 r1022  
    7474  } 
    7575 
     76  // A hack, clean this up. 
     77  template <typename InputIter> 
     78  void                set_range_dirent(InputIter first, InputIter last) { 
     79    m_list.clear(); 
     80 
     81    while (first != last) 
     82      m_list.push_back((first++)->d_name); 
     83 
     84    m_window->set_range(m_list.begin(), m_list.end()); 
     85    m_window->mark_dirty(); 
     86  } 
     87 
    7688  void                next_screen(); 
    7789