Mercurial > mplayer.hg
diff Gui/skin/skin.c @ 1866:32b1bb50a0e8
some bug fix, and add decoration item to skin conffile. faszom(C)
author | pontscho |
---|---|
date | Fri, 07 Sep 2001 21:04:14 +0000 |
parents | 58dd326fcc4a |
children | d21f8afc7680 |
line wrap: on
line diff
--- a/Gui/skin/skin.c Fri Sep 07 20:43:37 2001 +0000 +++ b/Gui/skin/skin.c Fri Sep 07 21:04:14 2001 +0000 @@ -10,12 +10,7 @@ #include "../language.h" #include "../../config.h" -//char SkinDir[] = "/.mplayer/Skin/"; -//char * Skin; - listItems * skinAppMPlayer = &appMPlayer; -//listItems * skinAppTV = &appTV; -//listItems * skinAppRadio = &appRadio; int linenumber; @@ -549,6 +544,27 @@ return 0; } +int __decoration( char * in ) +{ + char tmp[512]; + + CHECKDEFLIST( "decoration" ); + CHECKWINLIST( "decoration" ); + + #ifdef DEBUG + dbprintf( 0,"\n[skin] window decoration is %s\n",in ); + #endif + cutItem( in,tmp,',',0 ); + if ( strcmp( tmp,"enable" )&&strcmp( tmp,"disable" ) ) { ERRORMESSAGE( "unknown parameter.\n" ); return 1; } + if ( strcmp( tmp,"enable" ) ) defList->mainDecoration=0; + else defList->mainDecoration=1; + + #ifdef DEBUG + dbprintf( 3,"\n[skin] window decoration is %s\n",(defList->mainDecoration?"enabled":"disabled") ); + #endif + return 0; +} + typedef struct { char * name; @@ -569,6 +585,7 @@ { "font", __font }, { "slabel", __slabel }, { "dlabel", __dlabel }, + { "decoration", __decoration }, { "menu", __menu } };