changeset 3586:a0009a534428

itt a skin nem van hibauzenet igy.
author pontscho
date Tue, 18 Dec 2001 20:01:10 +0000
parents cb985ea11ed5
children 6e21fbb41a2b
files Gui/app.c Gui/mplayer/widgets.c Gui/skin/skin.c help_mp-en.h help_mp-hu.h
diffstat 5 files changed, 13 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/app.c	Tue Dec 18 18:45:00 2001 +0000
+++ b/Gui/app.c	Tue Dec 18 20:01:10 2001 +0000
@@ -3,8 +3,11 @@
 #include <stdio.h>
 #include <string.h>
 
+#include "../config.h"
+#include "../mp_msg.h"
+#include "../help_mp.h"
+
 #include "app.h"
-#include "../config.h"
 #include "error.h"
 #include "wm/wskeys.h"
 #include "skin/skin.h"
@@ -109,8 +112,8 @@
  initDebug(NULL); // write messages to stderr
  switch ( skinRead( skinName ) )
   {
-   case -1: dbprintf( 0,"[app] skin configfile not found.\n" ); exit( 0 );
-   case -2: dbprintf( 0,"[app] skin configfile read error.\n" ); exit( 0 );
+   case -1: mp_msg( MSGT_GPLAYER,MSGL_ERR,MSGTR_SKIN_SKINCFG_SkinNotFound,skinName ); exit( 0 );
+   case -2: mp_msg( MSGT_GPLAYER,MSGL_ERR,MSGTR_SKIN_SKINCFG_SkinCfgReadError,skinName ); exit( 0 );
   }
  mplInit( argc,argv,envp,disp ); // does gtk & ws initialization, create windows
 }
--- a/Gui/mplayer/widgets.c	Tue Dec 18 18:45:00 2001 +0000
+++ b/Gui/mplayer/widgets.c	Tue Dec 18 20:01:10 2001 +0000
@@ -110,6 +110,7 @@
 
 void gtkMessageBox( int type,gchar * str )
 {
+ if ( !gtkIsOk ) return;
  gtkShMem->mb.type=type;
  strcpy( gtkShMem->mb.str,str );
  gtkSendMessage( evMessageBox );
--- a/Gui/skin/skin.c	Tue Dec 18 18:45:00 2001 +0000
+++ b/Gui/skin/skin.c	Tue Dec 18 20:01:10 2001 +0000
@@ -7,7 +7,9 @@
 #include "error.h"
 #include "font.h"
 #include "../app.h"
+
 #include "../../config.h"
+#include "../../mp_msg.h"
 #include "../../help_mp.h"
 
 listItems     * skinAppMPlayer = &appMPlayer;
--- a/help_mp-en.h	Tue Dec 18 18:45:00 2001 +0000
+++ b/help_mp-en.h	Tue Dec 18 20:01:10 2001 +0000
@@ -266,5 +266,7 @@
 #define MSGTR_SKIN_FONT_NonExistentFontID "non-existent font identifier ( %s )\n"
 #define MSGTR_SKIN_UnknownParameter "unknown parameter ( %s )\n"
 #define MSGTR_SKINBROWSER_NotEnoughMemory "[skinbrowser] not enough memory.\n"
+#define MSGTR_SKIN_SKINCFG_SkinNotFound "Skin not found ( %s ).\n"
+#define MSGTR_SKIN_SKINCFG_SkinCfgReadError "Skin configfile read error ( %s ).\n"
 
 #endif
--- a/help_mp-hu.h	Tue Dec 18 18:45:00 2001 +0000
+++ b/help_mp-hu.h	Tue Dec 18 20:01:10 2001 +0000
@@ -261,5 +261,7 @@
 #define MSGTR_SKIN_FONT_NonExistentFontID "nemlétező betűtipus azonosító ( %s )\n"
 #define MSGTR_SKIN_UnknownParameter "ismeretlen paraméter ( %s )\n"
 #define MSGTR_SKINBROWSER_NotEnoughMemory "[skinböngésző] nincs elég memória.\n"
+#define MSGTR_SKIN_SKINCFG_SkinNotFound "Skin nem található ( %s ).\n"
+#define MSGTR_SKIN_SKINCFG_SkinCfgReadError "Skin configfile olvasási hiba ( %s ).\n"
 
 #endif