Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
1865:538b993b3518 | 1866:32b1bb50a0e8 |
---|---|
8 #include "font.h" | 8 #include "font.h" |
9 #include "../app.h" | 9 #include "../app.h" |
10 #include "../language.h" | 10 #include "../language.h" |
11 #include "../../config.h" | 11 #include "../../config.h" |
12 | 12 |
13 //char SkinDir[] = "/.mplayer/Skin/"; | |
14 //char * Skin; | |
15 | |
16 listItems * skinAppMPlayer = &appMPlayer; | 13 listItems * skinAppMPlayer = &appMPlayer; |
17 //listItems * skinAppTV = &appTV; | |
18 //listItems * skinAppRadio = &appRadio; | |
19 | 14 |
20 int linenumber; | 15 int linenumber; |
21 | 16 |
22 unsigned char path[512],fn[512]; | 17 unsigned char path[512],fn[512]; |
23 | 18 |
547 strcpy( item->label,tmp ); | 542 strcpy( item->label,tmp ); |
548 | 543 |
549 return 0; | 544 return 0; |
550 } | 545 } |
551 | 546 |
547 int __decoration( char * in ) | |
548 { | |
549 char tmp[512]; | |
550 | |
551 CHECKDEFLIST( "decoration" ); | |
552 CHECKWINLIST( "decoration" ); | |
553 | |
554 #ifdef DEBUG | |
555 dbprintf( 0,"\n[skin] window decoration is %s\n",in ); | |
556 #endif | |
557 cutItem( in,tmp,',',0 ); | |
558 if ( strcmp( tmp,"enable" )&&strcmp( tmp,"disable" ) ) { ERRORMESSAGE( "unknown parameter.\n" ); return 1; } | |
559 if ( strcmp( tmp,"enable" ) ) defList->mainDecoration=0; | |
560 else defList->mainDecoration=1; | |
561 | |
562 #ifdef DEBUG | |
563 dbprintf( 3,"\n[skin] window decoration is %s\n",(defList->mainDecoration?"enabled":"disabled") ); | |
564 #endif | |
565 return 0; | |
566 } | |
567 | |
552 typedef struct | 568 typedef struct |
553 { | 569 { |
554 char * name; | 570 char * name; |
555 int (*func)( char * in ); | 571 int (*func)( char * in ); |
556 } _item; | 572 } _item; |
567 { "hpotmeter", __hpotmeter }, | 583 { "hpotmeter", __hpotmeter }, |
568 { "potmeter", __potmeter }, | 584 { "potmeter", __potmeter }, |
569 { "font", __font }, | 585 { "font", __font }, |
570 { "slabel", __slabel }, | 586 { "slabel", __slabel }, |
571 { "dlabel", __dlabel }, | 587 { "dlabel", __dlabel }, |
588 { "decoration", __decoration }, | |
572 { "menu", __menu } | 589 { "menu", __menu } |
573 }; | 590 }; |
574 | 591 |
575 #define ITEMS ( sizeof( skinItem )/sizeof( _item ) ) | 592 #define ITEMS ( sizeof( skinItem )/sizeof( _item ) ) |
576 | 593 |