diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-18 20:01:10 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-18 20:01:10 +0000 |
commit | 4d3b8c99b11fdbee1d77ab483908393ef2c295e5 (patch) | |
tree | c91d9a3ad607397a5ef311ef3aa10b2eb1adcaa5 /Gui | |
parent | 2f6396e310ee1f03df1563a3ee760654a4673607 (diff) | |
download | mpv-4d3b8c99b11fdbee1d77ab483908393ef2c295e5.tar.bz2 mpv-4d3b8c99b11fdbee1d77ab483908393ef2c295e5.tar.xz |
itt a skin nem van hibauzenet igy.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3587 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui')
-rw-r--r-- | Gui/app.c | 9 | ||||
-rw-r--r-- | Gui/mplayer/widgets.c | 1 | ||||
-rw-r--r-- | Gui/skin/skin.c | 2 |
3 files changed, 9 insertions, 3 deletions
@@ -3,8 +3,11 @@ #include <stdio.h> #include <string.h> -#include "app.h" #include "../config.h" +#include "../mp_msg.h" +#include "../help_mp.h" + +#include "app.h" #include "error.h" #include "wm/wskeys.h" #include "skin/skin.h" @@ -109,8 +112,8 @@ void appInit( int argc,char* argv[], char *envp[], void* disp ) 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 --git a/Gui/mplayer/widgets.c b/Gui/mplayer/widgets.c index e945761356..1629265a91 100644 --- a/Gui/mplayer/widgets.c +++ b/Gui/mplayer/widgets.c @@ -110,6 +110,7 @@ void gtkDone( void ){ void gtkMessageBox( int type,gchar * str ) { + if ( !gtkIsOk ) return; gtkShMem->mb.type=type; strcpy( gtkShMem->mb.str,str ); gtkSendMessage( evMessageBox ); diff --git a/Gui/skin/skin.c b/Gui/skin/skin.c index 03604e1843..19cb1e3b68 100644 --- a/Gui/skin/skin.c +++ b/Gui/skin/skin.c @@ -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; |