Mercurial > mplayer.hg
diff gui/mplayer/gtk/opts.c @ 33243:c33f32258d33
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.
author | ib |
---|---|
date | Mon, 25 Apr 2011 12:38:55 +0000 |
parents | a419ec5afc9e |
children | 49d9967970c0 |
line wrap: on
line diff
--- 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 );