1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-09 13:50:00 +00:00

(trunk) have the gtk and qt clients use the same minimum seed ratio in the preferences dialog as the mac uses

This commit is contained in:
Charles Kerr 2009-04-10 19:16:12 +00:00
parent 58de1f4317
commit afe11e1386
4 changed files with 8 additions and 8 deletions

View file

@ -755,7 +755,7 @@ refresh_activity( GtkWidget * top )
g_free( pch ); g_free( pch );
i = (int) ceil( verifiedPieceCount ); i = (int) ceil( verifiedPieceCount );
tr_strlsize( buf1, stat->haveValid + stat->haveUnchecked, sizeof( buf1 ) ); tr_strlsize( buf1, stat->haveValid + stat->haveUnchecked, sizeof( buf1 ) );
tr_strlsize( buf2, stat->haveValid, sizeof( buf2 ) ); tr_strlsize( buf2, stat->haveValid, sizeof( buf2 ) );
/* %1$s is total size of what we've saved to disk /* %1$s is total size of what we've saved to disk
* %2$s is how much of it's passed the checksum test * %2$s is how much of it's passed the checksum test

View file

@ -150,12 +150,12 @@ parsepath( GtkWidget * w,
{ {
priority = tr_torrentGetFilePriority( tor, index ); priority = tr_torrentGetFilePriority( tor, index );
enabled = tr_torrentGetFileDL( tor, index ); enabled = tr_torrentGetFileDL( tor, index );
mime_type = get_mime_type_from_filename( file ); mime_type = get_mime_type_from_filename( file );
} }
else else
{ {
size = 0; size = 0;
mime_type = DIRECTORY_MIME_TYPE; mime_type = DIRECTORY_MIME_TYPE;
} }
icon = get_mime_type_icon( mime_type, GTK_ICON_SIZE_MENU, w ); icon = get_mime_type_icon( mime_type, GTK_ICON_SIZE_MENU, w );
@ -184,7 +184,7 @@ parsepath( GtkWidget * w,
#endif #endif
if( icon != NULL ) if( icon != NULL )
g_object_unref( icon ); g_object_unref( icon );
done: done:
g_free( mykey ); g_free( mykey );
@ -455,7 +455,7 @@ file_list_set_torrent( GtkWidget * w,
/* instantiate the model */ /* instantiate the model */
store = gtk_tree_store_new ( N_FILE_COLS, store = gtk_tree_store_new ( N_FILE_COLS,
GDK_TYPE_PIXBUF, /* icon */ GDK_TYPE_PIXBUF, /* icon */
G_TYPE_STRING, /* label */ G_TYPE_STRING, /* label */
G_TYPE_INT, /* prog [0..100] */ G_TYPE_INT, /* prog [0..100] */
G_TYPE_STRING, /* key */ G_TYPE_STRING, /* key */

View file

@ -310,7 +310,7 @@ torrentPage( GObject * core )
s = _( "_Stop seeding torrents at ratio:" ); s = _( "_Stop seeding torrents at ratio:" );
w = new_check_button( s, TR_PREFS_KEY_RATIO_ENABLED, core ); w = new_check_button( s, TR_PREFS_KEY_RATIO_ENABLED, core );
w2 = new_spin_button_double( TR_PREFS_KEY_RATIO, core, .5, INT_MAX, .05 ); w2 = new_spin_button_double( TR_PREFS_KEY_RATIO, core, 0, INT_MAX, .05 );
gtk_widget_set_sensitive( GTK_WIDGET( w2 ), pref_flag_get( TR_PREFS_KEY_RATIO_ENABLED ) ); gtk_widget_set_sensitive( GTK_WIDGET( w2 ), pref_flag_get( TR_PREFS_KEY_RATIO_ENABLED ) );
g_signal_connect( w, "toggled", G_CALLBACK( target_cb ), w2 ); g_signal_connect( w, "toggled", G_CALLBACK( target_cb ), w2 );
hig_workarea_add_row_w( t, &row, w, w2, NULL ); hig_workarea_add_row_w( t, &row, w, w2, NULL );

View file

@ -548,7 +548,7 @@ PrefsDialog :: createTorrentsTab( )
hig->addSectionTitle( tr( "Limits" ) ); hig->addSectionTitle( tr( "Limits" ) );
l = checkBoxNew( tr( "&Stop seeding torrents at ratio:" ), Prefs::RATIO_ENABLED ); l = checkBoxNew( tr( "&Stop seeding torrents at ratio:" ), Prefs::RATIO_ENABLED );
r = doubleSpinBoxNew( Prefs::RATIO, 0.5, INT_MAX, 0.5, 2 ); r = doubleSpinBoxNew( Prefs::RATIO, 0, INT_MAX, 0.5, 2 );
hig->addRow( l, r ); hig->addRow( l, r );
enableBuddyWhenChecked( qobject_cast<QCheckBox*>(l), r ); enableBuddyWhenChecked( qobject_cast<QCheckBox*>(l), r );