Changeset 38603


Ignore:
Timestamp:
09/06/16 18:26:42 (7 years ago)
Author:
gost
Message:

new skin function.... getallpicon

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/skin.h

    r38580 r38603  
    113113                return &getalternatepicon;
    114114        }
     115        if(ostrcmp("getallpicon", value) == 0)
     116        {
     117                *rettype = FUNCPIC;
     118                return &getallpicon;
     119        }       
    115120        if(ostrcmp("getepgpicon", value) == 0)
    116121        {
  • titan/titan/skinfunc.h

    r38592 r38603  
    11661166}
    11671167
     1168char* getallpicon(struct skin* node, char* firstpath)
     1169{
     1170        char* tmpstr = NULL;
     1171        int p1 = 0;
     1172        int p2 = 1;
     1173       
     1174        if(firstpath != NULL)
     1175        {
     1176                if(ostrcmp("alternate", firstpath) == 0)
     1177                {
     1178                        p1 = 1;
     1179                        p2 = 0;
     1180                }
     1181        }
     1182       
     1183        tmpstr = createpiconpath(status.aktservice->channel, p1);
     1184        if(ostrstr(tmpstr, "defpicon.png") != NULL)
     1185        {
     1186                free(tmpstr); tmpstr=NULL;
     1187                tmpstr = createpiconpath(status.aktservice->channel, p2);
     1188        }
     1189        return tmpstr;
     1190}
     1191
    11681192char* gettime(struct skin* node, char* format)
    11691193{
Note: See TracChangeset for help on using the changeset viewer.