Changeset 32303


Ignore:
Timestamp:
01/11/15 02:51:50 (9 years ago)
Author:
tobayer
Message:

[titan] add infobar selection, step 3

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/infobar.h

    r32180 r32303  
    77        struct channel* pipchannel = NULL;
    88        struct skin* playinfobarpic = getscreen("playinfobarpic");
    9         struct skin* infobar1 = getscreen("infobar");
    10         struct skin* infobar2 = getscreen("infobar2");
     9
     10        char* infobar_sel = getskinconfig("infobar2_selection", NULL);
     11        char* infobar2_sel = getskinconfig("infobar2_selection", NULL);
     12        if(infobar_sel == NULL) ostrcat(infobar_sel, "infobar", 0, 0); // fallback to default
     13        if(infobar2_sel == NULL) ostrcat(infobar_sel, "infobar2", 0, 0); // fallback to default
     14
     15        struct skin* infobar1 = getscreen(infobar_sel);
     16        struct skin* infobar2 = getscreen(infobar2_sel);
    1117        struct skin* infobar = infobar1;
    1218        struct skin* infobarm = infobar1;
     19
     20        free(infobar_sel); infobar_sel=NULL;free(infobar2_sel); infobar2_sel=NULL;
     21
    1322        struct skin* standbymenu = NULL;
    1423        char* tmpstr = NULL; char* tmpnr = NULL;
  • titan/titan/skinadjust.h

    r32302 r32303  
    251251                        addskinconfigscreencheck("infobar_selection", infobar_sel, "0");
    252252                        if(ostrcmp(oldinfobar_sel,getskinconfig("infobar_selection", NULL)) != 0) reboot = 1;
     253                        free(oldinfobar_sel); oldinfobar_sel=NULL;
    253254
    254255                        char* oldinfobar2_sel = getskinconfig("infobar2_selection", NULL);
    255256                        addskinconfigscreencheck("infobar2_selection", infobar2_sel, "0");
    256257                        if(ostrcmp(oldinfobar2_sel,getskinconfig("infobar2_selection", NULL)) != 0) reboot = 1;
     258                        free(oldinfobar2_sel); oldinfobar2_sel=NULL;
    257259
    258260                        writeskinconfigtmp();
Note: See TracChangeset for help on using the changeset viewer.