mirror of
https://github.com/transmission/transmission
synced 2024-12-23 08:13:27 +00:00
add a wx version test to see if SetSashGravity() is available
This commit is contained in:
parent
0ccbf1f8f8
commit
05d2c72e60
2 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue