# HG changeset patch # User pontscho # Date 1008705670 0 # Node ID a0009a53442815537298fe71a8593703edd6cf38 # Parent cb985ea11ed556647582012f617345959937172b itt a skin nem van hibauzenet igy. diff -r cb985ea11ed5 -r a0009a534428 Gui/app.c --- 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 #include +#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 } diff -r cb985ea11ed5 -r a0009a534428 Gui/mplayer/widgets.c --- 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 ); diff -r cb985ea11ed5 -r a0009a534428 Gui/skin/skin.c --- 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; diff -r cb985ea11ed5 -r a0009a534428 help_mp-en.h --- 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 diff -r cb985ea11ed5 -r a0009a534428 help_mp-hu.h --- 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