[Mplayer-cvslog] CVS: main/Gui interface.c,1.4,1.5 interface.h,1.4,1.5
Zoltan Ponekker
pontscho at mplayer.dev.hu
Thu Mar 7 00:54:22 CET 2002
Update of /cvsroot/mplayer/main/Gui
In directory mplayer:/var/tmp.root/cvs-serv15398/Gui
Modified Files:
interface.c interface.h
Log Message:
small changes
Index: interface.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/interface.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- interface.c 25 Feb 2002 13:14:26 -0000 1.4
+++ interface.c 6 Mar 2002 23:54:20 -0000 1.5
@@ -53,6 +53,12 @@
gtkEventHandling();
break;
case guiCEvent:
+ switch ( (int)arg )
+ {
+ case guiSetPlay: guiIntfStruct.Playing=1; mplState(); break;
+ case guiSetStop: guiIntfStruct.Playing=0; mplState(); break;
+ case guiSetPause: guiIntfStruct.Playing=2; mplState(); break;
+ }
break;
case guiIEvent:
printf( "cmd: %d\n",(int)arg );
@@ -76,4 +82,5 @@
if ( use_gui && !guiIntfStruct.Playing ) wsHandleEvents();
gtkEventHandling();
mplTimerHandler(); // handle GUI timer events
+ mplState();
}
Index: interface.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/interface.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- interface.h 24 Feb 2002 21:57:15 -0000 1.4
+++ interface.h 6 Mar 2002 23:54:20 -0000 1.5
@@ -97,6 +97,10 @@
#define guiCEvent 1
#define guiIEvent 2
+#define guiSetStop 0
+#define guiSetPlay 1
+#define guiSetPause 2
+
extern void guiInit( int argc,char* argv[], char *envp[] );
extern void guiGetEvent( int type,char * arg );
extern void guiEventHandling( void );
More information about the MPlayer-cvslog
mailing list