Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
33242:7bc1d3b00580 | 33243:c33f32258d33 |
---|---|
1257 | 1257 |
1258 hbox5=AddHBox( vbox602,1 ); | 1258 hbox5=AddHBox( vbox602,1 ); |
1259 | 1259 |
1260 AddLabel( MSGTR_PREFERENCES_CacheSize,hbox5 ); | 1260 AddLabel( MSGTR_PREFERENCES_CacheSize,hbox5 ); |
1261 | 1261 |
1262 SBCacheadj=GTK_ADJUSTMENT( gtk_adjustment_new( 2048,32,1048576,1,10,10 ) ); | 1262 SBCacheadj=GTK_ADJUSTMENT( gtk_adjustment_new( gtkCacheSize,32,1048576,1,32,0 ) ); |
1263 SBCache=gtk_spin_button_new( GTK_ADJUSTMENT( SBCacheadj ),1,0 ); | 1263 SBCache=gtk_spin_button_new( GTK_ADJUSTMENT( SBCacheadj ),1,0 ); |
1264 gtk_widget_show( SBCache ); | 1264 gtk_widget_show( SBCache ); |
1265 gtk_box_pack_start( GTK_BOX( hbox5 ),SBCache,TRUE,TRUE,0 ); | 1265 gtk_box_pack_start( GTK_BOX( hbox5 ),SBCache,TRUE,TRUE,0 ); |
1266 | 1266 |
1267 vbox602=AddVBox( | 1267 vbox602=AddVBox( |