[MPlayer-cvslog] r33699 - in trunk: gui/interface.c gui/interface.h gui/ui/actions.c gui/ui/gtk/fileselect.c gui/win32/dialogs.c gui/win32/interface.c gui/win32/preferences.c mplayer.c
ib
subversion at mplayerhq.hu
Wed Jun 22 13:48:31 CEST 2011
Author: ib
Date: Wed Jun 22 13:48:31 2011
New Revision: 33699
Log:
Rename guiGetEvent type guiCEvent guiSetState.
Type guiCEvent sets the state and should be named so.
Modified:
trunk/gui/interface.c
trunk/gui/interface.h
trunk/gui/ui/actions.c
trunk/gui/ui/gtk/fileselect.c
trunk/gui/win32/dialogs.c
trunk/gui/win32/interface.c
trunk/gui/win32/preferences.c
trunk/mplayer.c
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Wed Jun 22 13:30:27 2011 (r33698)
+++ trunk/gui/interface.c Wed Jun 22 13:48:31 2011 (r33699)
@@ -572,7 +572,7 @@ int guiGetEvent(int type, void *arg)
gtkEventHandling();
break;
- case guiCEvent:
+ case guiSetState:
switch ((int)arg) {
case guiSetPlay:
Modified: trunk/gui/interface.h
==============================================================================
--- trunk/gui/interface.h Wed Jun 22 13:30:27 2011 (r33698)
+++ trunk/gui/interface.h Wed Jun 22 13:48:31 2011 (r33699)
@@ -37,7 +37,7 @@ extern int use_gui; // this
#define GMPlayer "gmplayer"
#define guiXEvent 0
-#define guiCEvent 1
+#define guiSetState 1
#define guiIEvent 2
#define guiSetDVD 3
#define guiSetFileName 4
Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c Wed Jun 22 13:30:27 2011 (r33698)
+++ trunk/gui/ui/actions.c Wed Jun 22 13:48:31 2011 (r33699)
@@ -128,7 +128,7 @@ void uiEnd(void)
} else
wsVisibleWindow(&guiApp.subWindow, wsHideWindow);
- guiGetEvent(guiCEvent, (void *)guiSetStop);
+ guiGetEvent(guiSetState, (void *)guiSetStop);
uiSubRender = 1;
wsSetBackgroundRGB(&guiApp.subWindow, guiApp.sub.R, guiApp.sub.G, guiApp.sub.B);
wsClearWindow(guiApp.subWindow);
@@ -148,7 +148,7 @@ void uiPlay(void)
return;
}
- guiGetEvent(guiCEvent, (void *)guiSetPlay);
+ guiGetEvent(guiSetState, (void *)guiSetPlay);
uiSubRender = 0;
wsSetBackgroundRGB(&guiApp.subWindow, 0, 0, 0);
wsClearWindow(guiApp.subWindow);
Modified: trunk/gui/ui/gtk/fileselect.c
==============================================================================
--- trunk/gui/ui/gtk/fileselect.c Wed Jun 22 13:30:27 2011 (r33698)
+++ trunk/gui/ui/gtk/fileselect.c Wed Jun 22 13:48:31 2011 (r33699)
@@ -510,7 +510,7 @@ static void fs_Ok_released( GtkButton *
}
if ( i ) fsTopList_items=g_list_prepend( fsTopList_items,(gchar *)get_current_dir_name_utf8() );
if ( uiMainAutoPlay ) { uiMainAutoPlay=0; uiEventHandling( evPlay,0 ); }
- else guiGetEvent( guiCEvent,(void *) guiSetStop );
+ else guiGetEvent( guiSetState,(void *) guiSetStop );
}
static void fs_Cancel_released( GtkButton * button,gpointer user_data )
Modified: trunk/gui/win32/dialogs.c
==============================================================================
--- trunk/gui/win32/dialogs.c Wed Jun 22 13:30:27 2011 (r33698)
+++ trunk/gui/win32/dialogs.c Wed Jun 22 13:48:31 2011 (r33699)
@@ -708,7 +708,7 @@ static LRESULT CALLBACK SkinBrowserWndPr
int len = SendMessage(listbox, LB_GETTEXTLEN, index, 0);
if (len)
{
- if (guiInfo.Playing) guiGetEvent(guiCEvent, (void *) guiSetStop);
+ if (guiInfo.Playing) guiGetEvent(guiSetState, (void *) guiSetStop);
free(skinName);
skinName = malloc(len + 1);
SendMessage(listbox, LB_GETTEXT, (WPARAM) index, (LPARAM) skinName);
Modified: trunk/gui/win32/interface.c
==============================================================================
--- trunk/gui/win32/interface.c Wed Jun 22 13:30:27 2011 (r33698)
+++ trunk/gui/win32/interface.c Wed Jun 22 13:48:31 2011 (r33699)
@@ -218,7 +218,7 @@ static void guiSetEvent(int event)
}
case evStop:
if(guiInfo.Playing)
- guiGetEvent(guiCEvent, (void *) guiSetStop);
+ guiGetEvent(guiSetState, (void *) guiSetStop);
break;
case evSetMoviePosition:
{
@@ -288,7 +288,7 @@ static void guiSetEvent(int event)
guiInfo.Chapter = guiInfo.DVD.current_chapter;
guiInfo.Angle = guiInfo.DVD.current_angle;
guiInfo.DiskChanged = 1;
- guiGetEvent(guiCEvent, (void *) guiSetPlay);
+ guiGetEvent(guiSetState, (void *) guiSetPlay);
break;
}
#endif
@@ -297,8 +297,8 @@ static void guiSetEvent(int event)
guiInfo.FilenameChanged = guiInfo.NewPlay = 1;
update_playlistwindow();
uiGotoTheNext = guiInfo.Playing? 0 : 1;
- guiGetEvent(guiCEvent, (void *) guiSetStop);
- guiGetEvent(guiCEvent, (void *) guiSetPlay);
+ guiGetEvent(guiSetState, (void *) guiSetStop);
+ guiGetEvent(guiSetState, (void *) guiSetPlay);
break;
}
}
@@ -324,7 +324,7 @@ void uiPlay( void )
return;
}
guiInfo.NewPlay = 1;
- guiGetEvent(guiCEvent, (void *) guiSetPlay);
+ guiGetEvent(guiSetState, (void *) guiSetPlay);
}
void uiPause( void )
@@ -428,12 +428,12 @@ void uiEnd( void )
style = WS_OVERLAPPEDWINDOW | WS_SIZEBOX;
SetWindowLong(mygui->subwindow, GWL_STYLE, style);
}
- guiGetEvent(guiCEvent, (void *) guiSetStop);
+ guiGetEvent(guiSetState, (void *) guiSetStop);
}
void uiStop(void)
{
- guiGetEvent(guiCEvent, (void *) guiSetStop);
+ guiGetEvent(guiSetState, (void *) guiSetStop);
}
void uiSetFileName(char *dir, char *name, int type)
@@ -660,7 +660,7 @@ int guiGetEvent(int type, void *arg)
case guiSetAfilter:
guiInfo.afilter = arg;
break;
- case guiCEvent:
+ case guiSetState:
{
guiInfo.Playing = (int) arg;
switch (guiInfo.Playing)
Modified: trunk/gui/win32/preferences.c
==============================================================================
--- trunk/gui/win32/preferences.c Wed Jun 22 13:30:27 2011 (r33698)
+++ trunk/gui/win32/preferences.c Wed Jun 22 13:48:31 2011 (r33699)
@@ -558,7 +558,7 @@ static LRESULT CALLBACK PrefsWndProc(HWN
case ID_APPLY:
{
int strl;
- if(guiInfo.Playing) guiGetEvent(guiCEvent, (void *)guiSetStop);
+ if(guiInfo.Playing) guiGetEvent(guiSetState, (void *)guiSetStop);
/* Set the video driver */
free(video_driver_list[0]);
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c Wed Jun 22 13:30:27 2011 (r33698)
+++ trunk/mplayer.c Wed Jun 22 13:48:31 2011 (r33699)
@@ -2537,7 +2537,7 @@ static void pause_loop(void)
}
#ifdef CONFIG_GUI
if (use_gui)
- guiGetEvent(guiCEvent, (char *)guiSetPause);
+ guiGetEvent(guiSetState, (char *)guiSetPause);
#endif
if (mpctx->video_out && mpctx->sh_video && vo_config_count)
mpctx->video_out->control(VOCTRL_PAUSE, NULL);
@@ -2604,7 +2604,7 @@ static void pause_loop(void)
if (guiInfo.Playing == guiSetStop)
mpctx->eof = 1;
else
- guiGetEvent(guiCEvent, (char *)guiSetPlay);
+ guiGetEvent(guiSetState, (char *)guiSetPlay);
}
#endif
}
@@ -3052,7 +3052,7 @@ int main(int argc, char *argv[])
if (use_gui) {
guiInit();
guiGetEvent(guiSetContext, mpctx);
- guiGetEvent(guiCEvent, (char *)((gui_no_filename) ? 0 : 1));
+ guiGetEvent(guiSetState, (char *)((gui_no_filename) ? 0 : 1));
}
#endif
More information about the MPlayer-cvslog
mailing list