summaryrefslogtreecommitdiffstats
path: root/Gui/skin/skin.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-07 21:04:14 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-07 21:04:14 +0000
commit83e1eed13d1b566420b416fef2ec044cfd3ba92b (patch)
tree3e809bd0883bc06c7ad94fb8eb59d7732a2894ce /Gui/skin/skin.c
parent70c0a8df28688ae933c392fdf0ccecc88c57bd6e (diff)
downloadmpv-83e1eed13d1b566420b416fef2ec044cfd3ba92b.tar.bz2
mpv-83e1eed13d1b566420b416fef2ec044cfd3ba92b.tar.xz
some bug fix, and add decoration item to skin conffile. faszom(C)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1867 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/skin/skin.c')
-rw-r--r--Gui/skin/skin.c27
1 files changed, 22 insertions, 5 deletions
diff --git a/Gui/skin/skin.c b/Gui/skin/skin.c
index c3f81a1637..d410306372 100644
--- a/Gui/skin/skin.c
+++ b/Gui/skin/skin.c
@@ -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 @@ int __dlabel( char * in )
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 @@ _item skinItem[] =
{ "font", __font },
{ "slabel", __slabel },
{ "dlabel", __dlabel },
+ { "decoration", __decoration },
{ "menu", __menu }
};