comparison Gui/interface.c @ 4963:13262bd21965

small changes
author pontscho
date Wed, 06 Mar 2002 23:54:20 +0000
parents 65730cea02e7
children 923605707de6
comparison
equal deleted inserted replaced
4962:993f274191ff 4963:13262bd21965
51 case guiXEvent: 51 case guiXEvent:
52 wsEvents( wsDisplay,(XEvent *)arg,NULL ); 52 wsEvents( wsDisplay,(XEvent *)arg,NULL );
53 gtkEventHandling(); 53 gtkEventHandling();
54 break; 54 break;
55 case guiCEvent: 55 case guiCEvent:
56 switch ( (int)arg )
57 {
58 case guiSetPlay: guiIntfStruct.Playing=1; mplState(); break;
59 case guiSetStop: guiIntfStruct.Playing=0; mplState(); break;
60 case guiSetPause: guiIntfStruct.Playing=2; mplState(); break;
61 }
56 break; 62 break;
57 case guiIEvent: 63 case guiIEvent:
58 printf( "cmd: %d\n",(int)arg ); 64 printf( "cmd: %d\n",(int)arg );
59 switch( (int)arg ) 65 switch( (int)arg )
60 { 66 {
74 void guiEventHandling( void ) 80 void guiEventHandling( void )
75 { 81 {
76 if ( use_gui && !guiIntfStruct.Playing ) wsHandleEvents(); 82 if ( use_gui && !guiIntfStruct.Playing ) wsHandleEvents();
77 gtkEventHandling(); 83 gtkEventHandling();
78 mplTimerHandler(); // handle GUI timer events 84 mplTimerHandler(); // handle GUI timer events
85 mplState();
79 } 86 }