Mercurial > mplayer.hg
changeset 8300:bf8e8144dfa6
10l fix in item disabling (vagymi)
author | pontscho |
---|---|
date | Wed, 27 Nov 2002 23:11:49 +0000 |
parents | 5b67aed0fc28 |
children | d867439e3940 |
files | Gui/app.c Gui/app.h Gui/interface.c Gui/mplayer/mw.c |
diffstat | 4 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Gui/app.c Wed Nov 27 22:48:56 2002 +0000 +++ b/Gui/app.c Wed Nov 27 23:11:49 2002 +0000 @@ -189,6 +189,6 @@ { int j; for ( j=0;j<appMPlayer.NumberOfItems + 1;j++ ) - if ( appMPlayer.Items[j].msg == event ) appMPlayer.Items[j].disabled=set; + if ( appMPlayer.Items[j].msg == event ) appMPlayer.Items[j].pressed=set; } \ No newline at end of file
--- a/Gui/app.h Wed Nov 27 22:48:56 2002 +0000 +++ b/Gui/app.h Wed Nov 27 23:11:49 2002 +0000 @@ -120,7 +120,7 @@ int px,py,psx,psy; // --- int msg,msg2; - int pressed,disabled,tmp; + int pressed,tmp; int key,key2; int phases; float value;
--- a/Gui/interface.c Wed Nov 27 22:48:56 2002 +0000 +++ b/Gui/interface.c Wed Nov 27 23:11:49 2002 +0000 @@ -545,8 +545,8 @@ if ( guiIntfStruct.NoWindow ) wsVisibleWindow( &appMPlayer.subWindow,wsHideWindow ); - if ( guiIntfStruct.StreamType == STREAMTYPE_STREAM ) btnSet( evSetMoviePosition,1 ); - else btnSet( evSetMoviePosition,0 ); + if ( guiIntfStruct.StreamType == STREAMTYPE_STREAM ) btnSet( evSetMoviePosition,btnDisabled ); + else btnSet( evSetMoviePosition,btnReleased ); if ( gtkCacheOn ) stream_cache_size=gtkCacheSize; else stream_cache_size=-1;
--- a/Gui/mplayer/mw.c Wed Nov 27 22:48:56 2002 +0000 +++ b/Gui/mplayer/mw.c Wed Nov 27 23:11:49 2002 +0000 @@ -179,7 +179,7 @@ { wItem * item; txSample * image = NULL; - int i; + int i, type; if ( appMPlayer.mainWindow.State == wsWindowClosed ) exit_player( MSGTR_Exit_quit ); @@ -196,7 +196,6 @@ for( i=0;i < appMPlayer.NumberOfItems + 1;i++ ) { item=&appMPlayer.Items[i]; - if ( !item->disabled ) switch( item->type ) { case itButton: