# HG changeset patch # User ib # Date 1303735135 0 # Node ID c33f32258d3332235f7942fd297f0277f665e77d # Parent 7bc1d3b00580e50b7b0e86ae651bf4db980d0b46 Improve cache size spin button. Set the value shown (start value) to the current cache size, set page increment to 32 (kBytes) and set page size (which is irrelevant) to zero. diff -r 7bc1d3b00580 -r c33f32258d33 gui/mplayer/gtk/opts.c --- a/gui/mplayer/gtk/opts.c Mon Apr 25 12:24:05 2011 +0000 +++ b/gui/mplayer/gtk/opts.c Mon Apr 25 12:38:55 2011 +0000 @@ -1259,7 +1259,7 @@ AddLabel( MSGTR_PREFERENCES_CacheSize,hbox5 ); - SBCacheadj=GTK_ADJUSTMENT( gtk_adjustment_new( 2048,32,1048576,1,10,10 ) ); + SBCacheadj=GTK_ADJUSTMENT( gtk_adjustment_new( gtkCacheSize,32,1048576,1,32,0 ) ); SBCache=gtk_spin_button_new( GTK_ADJUSTMENT( SBCacheadj ),1,0 ); gtk_widget_show( SBCache ); gtk_box_pack_start( GTK_BOX( hbox5 ),SBCache,TRUE,TRUE,0 );