comparison Gui/skin/skin.c @ 14156:c30e193ac112

printf --> mp_msg conversion, less verbosity
author diego
date Wed, 15 Dec 2004 01:22:24 +0000
parents 9a495bdc3a1e
children e93d0faac02b
comparison
equal deleted inserted replaced
14155:c45c8b1cc0eb 14156:c30e193ac112
119 strlcpy( window_name,strlower( in ),sizeof( window_name ) ); 119 strlcpy( window_name,strlower( in ),sizeof( window_name ) );
120 if ( !strncmp( in,"main",4 ) ) { currSection=&skinAppMPlayer->main; currSubItem=&skinAppMPlayer->NumberOfItems; currSubItems=skinAppMPlayer->Items; } 120 if ( !strncmp( in,"main",4 ) ) { currSection=&skinAppMPlayer->main; currSubItem=&skinAppMPlayer->NumberOfItems; currSubItems=skinAppMPlayer->Items; }
121 else if ( !strncmp( in,"sub",3 ) ) currSection=&skinAppMPlayer->sub; 121 else if ( !strncmp( in,"sub",3 ) ) currSection=&skinAppMPlayer->sub;
122 else if ( !strncmp( in,"playbar",7 ) ) { currSection=&skinAppMPlayer->bar; currSubItem=&skinAppMPlayer->NumberOfBarItems; currSubItems=skinAppMPlayer->barItems; } 122 else if ( !strncmp( in,"playbar",7 ) ) { currSection=&skinAppMPlayer->bar; currSubItem=&skinAppMPlayer->NumberOfBarItems; currSubItems=skinAppMPlayer->barItems; }
123 else if ( !strncmp( in,"menu",4 ) ) { currSection=&skinAppMPlayer->menuBase; currSubItem=&skinAppMPlayer->NumberOfMenuItems; currSubItems=skinAppMPlayer->MenuItems; } 123 else if ( !strncmp( in,"menu",4 ) ) { currSection=&skinAppMPlayer->menuBase; currSubItem=&skinAppMPlayer->NumberOfMenuItems; currSubItems=skinAppMPlayer->MenuItems; }
124 else ERRORMESSAGE( "Unknown window type found ..." ); 124 else ERRORMESSAGE( MSGTR_UNKNOWNWINDOWTYPE );
125 mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"\n[skin] window: %s\n",window_name ); 125 mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"\n[skin] window: %s\n",window_name );
126 return 0; 126 return 0;
127 } 127 }
128 128
129 int cmd_base( char * in ) 129 int cmd_base( char * in )
674 if ( ( skinFile = fopen( fn,"rt" ) ) == NULL ) 674 if ( ( skinFile = fopen( fn,"rt" ) ) == NULL )
675 { 675 {
676 setname( skinMPlayerDir,dname ); 676 setname( skinMPlayerDir,dname );
677 if ( ( skinFile = fopen( fn,"rt" ) ) == NULL ) 677 if ( ( skinFile = fopen( fn,"rt" ) ) == NULL )
678 { 678 {
679 mp_msg( MSGT_GPLAYER,MSGL_STATUS,"[skin] file ( %s ) not found.\n",fn ); 679 mp_msg( MSGT_GPLAYER,MSGL_STATUS,MSGTR_SKIN_SkinFileNotFound,fn );
680 return -1; 680 return -1;
681 } 681 }
682 } 682 }
683 683
684 mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[skin] file: %s\n",fn ); 684 mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[skin] file: %s\n",fn );