diff --git a/gtk/details.c b/gtk/details.c index bf154d517..a697a6cf3 100644 --- a/gtk/details.c +++ b/gtk/details.c @@ -378,7 +378,7 @@ onPeerViewQueryTooltip( GtkWidget * widget, switch( *pch ) { case 'O': txt = _( "Optimistic unchoke" ); break; - case 'D': txt = _( "Downloading from this peer" ); break; + case 'D': txt = _( "Downloading from this peer" ); break; case 'd': txt = _( "We would download from this peer if they would let us" ); break; case 'U': txt = _( "Uploading to peer" ); break; case 'u': txt = _( "We would upload to this peer if they asked" ); break; @@ -755,7 +755,7 @@ refresh_activity( GtkWidget * top ) g_free( pch ); 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 ) ); /* %1$s is total size of what we've saved to disk * %2$s is how much of it's passed the checksum test diff --git a/gtk/file-list.c b/gtk/file-list.c index 308a15359..a2ce49720 100644 --- a/gtk/file-list.c +++ b/gtk/file-list.c @@ -150,12 +150,12 @@ parsepath( GtkWidget * w, { priority = tr_torrentGetFilePriority( tor, index ); enabled = tr_torrentGetFileDL( tor, index ); - mime_type = get_mime_type_from_filename( file ); + mime_type = get_mime_type_from_filename( file ); } else { size = 0; - mime_type = DIRECTORY_MIME_TYPE; + mime_type = DIRECTORY_MIME_TYPE; } icon = get_mime_type_icon( mime_type, GTK_ICON_SIZE_MENU, w ); @@ -184,7 +184,7 @@ parsepath( GtkWidget * w, #endif if( icon != NULL ) - g_object_unref( icon ); + g_object_unref( icon ); done: g_free( mykey ); @@ -455,7 +455,7 @@ file_list_set_torrent( GtkWidget * w, /* instantiate the model */ store = gtk_tree_store_new ( N_FILE_COLS, - GDK_TYPE_PIXBUF, /* icon */ + GDK_TYPE_PIXBUF, /* icon */ G_TYPE_STRING, /* label */ G_TYPE_INT, /* prog [0..100] */ G_TYPE_STRING, /* key */ diff --git a/gtk/tr-prefs.c b/gtk/tr-prefs.c index 3a4bbf01c..c45fb02da 100644 --- a/gtk/tr-prefs.c +++ b/gtk/tr-prefs.c @@ -310,7 +310,7 @@ torrentPage( GObject * core ) s = _( "_Stop seeding torrents at ratio:" ); 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 ) ); g_signal_connect( w, "toggled", G_CALLBACK( target_cb ), w2 ); hig_workarea_add_row_w( t, &row, w, w2, NULL ); diff --git a/qt/prefs-dialog.cc b/qt/prefs-dialog.cc index 0f10cb4c0..94fc3accd 100644 --- a/qt/prefs-dialog.cc +++ b/qt/prefs-dialog.cc @@ -548,7 +548,7 @@ PrefsDialog :: createTorrentsTab( ) hig->addSectionTitle( tr( "Limits" ) ); 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 ); enableBuddyWhenChecked( qobject_cast(l), r );