[Mplayer-cvslog] CVS: main/Gui/skin skin.c,1.4,1.5
Zoltan Ponekker
pontscho at mplayer.dev.hu
Fri Sep 7 23:04:17 CEST 2001
- Previous message: [Mplayer-cvslog] CVS: main/Gui/mplayer Makefile,1.1,1.2 mplayer.c,1.10,1.11 play.c,1.27,1.28 psignal.c,1.10,1.11
- Next message: [Mplayer-cvslog] CVS: main/DOCS cd-dvd.html,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/Gui/skin
In directory mplayer:/var/tmp.root/cvs-serv8679/Gui/skin
Modified Files:
skin.c
Log Message:
some bug fix, and add decoration item to skin conffile. faszom(C)
Index: skin.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/skin/skin.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- skin.c 4 Sep 2001 15:20:59 -0000 1.4
+++ skin.c 7 Sep 2001 21:04:14 -0000 1.5
@@ -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 }
};
- Previous message: [Mplayer-cvslog] CVS: main/Gui/mplayer Makefile,1.1,1.2 mplayer.c,1.10,1.11 play.c,1.27,1.28 psignal.c,1.10,1.11
- Next message: [Mplayer-cvslog] CVS: main/DOCS cd-dvd.html,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list