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

This commit is contained in:
Charles Kerr 2007-07-28 00:12:38 +00:00
parent 0ccbf1f8f8
commit 05d2c72e60
2 changed files with 3 additions and 2 deletions

View File

@ -247,8 +247,7 @@ TorrentListCtrl :: RefreshTorrent( tr_torrent_t * tor,
break;
case COL_PEERS:
/* FIXME: this is all peers, not just leechers */
xstr = wxString::Format( _("%d of %d"), s->peersConnected, s->peersTotal );
xstr = wxString::Format( _("%d of %d"), s->peersConnected, s->leechers );
break;
case COL_RATIO:

View File

@ -576,7 +576,9 @@ MyFrame :: MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size
**/
wxSplitterWindow * hsplit = new wxSplitterWindow( this );
#if wxCHECK_VERSION(2,5,4)
hsplit->SetSashGravity( 0.8 );
#endif
wxPanel * row1 = new wxPanel( hsplit, wxID_ANY );