[MPlayer-cvslog] r33065 - in trunk/gui: interface.c interface.h

ib subversion at mplayerhq.hu
Thu Mar 10 14:22:12 CET 2011


Author: ib
Date: Thu Mar 10 14:22:11 2011
New Revision: 33065

Log:
Remove unused function guiMessageBox().

It is no longer needed after r31377.

Modified:
   trunk/gui/interface.c
   trunk/gui/interface.h

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Thu Mar 10 00:03:54 2011	(r33064)
+++ trunk/gui/interface.c	Thu Mar 10 14:22:11 2011	(r33065)
@@ -1243,24 +1243,3 @@ int import_playtree_playlist_into_gui(pl
 
   return result;
 }
-
-// wrapper function for mp_msg to display a message box for errors and warnings.
-
-void guiMessageBox(int level, char * str) {
-	switch(level) {
-		case MSGL_FATAL:
-			gtkMessageBox(GTK_MB_FATAL|GTK_MB_SIMPLE, str);
-			break;
-		case MSGL_ERR:
-			gtkMessageBox(GTK_MB_ERROR|GTK_MB_SIMPLE, str);
-			break;
-#if 0
-// WARNING! Do NOT enable this! There are too many non-critical messages with
-// MSGL_WARN, for example: broken SPU packets, codec's bit error messages,
-// etc etc, they should not raise up a new window every time.
-		case MSGL_WARN:
-			gtkMessageBox(GTK_MB_WARNING|GTK_MB_SIMPLE, str);
-			break;
-#endif
-	}
-}

Modified: trunk/gui/interface.h
==============================================================================
--- trunk/gui/interface.h	Thu Mar 10 00:03:54 2011	(r33064)
+++ trunk/gui/interface.h	Thu Mar 10 14:22:11 2011	(r33065)
@@ -168,7 +168,6 @@ int  guiGetEvent( int type,void * arg );
 void guiEventHandling( void );
 void guiLoadFont( void );
 void guiLoadSubtitle( char * name );
-void guiMessageBox(int level, char * str);
 
 typedef struct plItem
 {


More information about the MPlayer-cvslog mailing list