Changeset 2522


Ignore:
Timestamp:
Jul 28, 2007, 12:12:38 AM (14 years ago)
Author:
charles
Message:

add a wx version test to see if SetSashGravity?() is available

Location:
trunk/wx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wx/torrent-list.cc

    r2519 r2522  
    248248
    249249            case COL_PEERS:
    250                 /* FIXME: this is all peers, not just leechers */
    251                 xstr = wxString::Format( _("%d of %d"), s->peersConnected, s->peersTotal );
     250                xstr = wxString::Format( _("%d of %d"), s->peersConnected, s->leechers );
    252251                break;
    253252
  • trunk/wx/xmission.cc

    r2519 r2522  
    577577
    578578    wxSplitterWindow * hsplit = new wxSplitterWindow( this );
     579#if wxCHECK_VERSION(2,5,4)
    579580    hsplit->SetSashGravity( 0.8 );
     581#endif
    580582
    581583    wxPanel * row1 = new wxPanel( hsplit, wxID_ANY );
Note: See TracChangeset for help on using the changeset viewer.