Changeset 32302


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

[titan] add infobar selection, step 2, fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/skinadjust.h

    r32301 r32302  
    2121        struct skin* oled_sel = getscreennode(skinadjust, "oled_sel");
    2222        struct skin* infobar_sel = getscreennode(skinadjust, "infobar_sel");
     23        struct skin* infobar2_sel = getscreennode(skinadjust, "infobar2_sel");
    2324        struct skin* pic1 = getscreennode(skinadjust, "pic1");
    2425        struct skin* pic2 = getscreennode(skinadjust, "pic2");
     
    106107        setchoiceboxselection(infobar_sel, getskinconfig("infobar_selection", NULL));
    107108
     109        if(checkscreen("infobar2") != status.skinerr)
     110                addchoicebox(infobar2_sel, "infobar2", "v1");
     111        if(checkscreen("infobar2_v2") != status.skinerr)
     112                addchoicebox(infobar2_sel, "infobar2_v2","v2");
     113        if(checkscreen("infobar2_v3") != status.skinerr)
     114                addchoicebox(infobar2_sel, "infobar2_v3","v3");
     115        setchoiceboxselection(infobar2_sel, getskinconfig("infobar2_selection", NULL));
     116
    108117        addchoicebox(showrecfreesize, "0", _("no"));
    109118        addchoicebox(showrecfreesize, "1", _("yes (Text in %)"));
     
    242251                        addskinconfigscreencheck("infobar_selection", infobar_sel, "0");
    243252                        if(ostrcmp(oldinfobar_sel,getskinconfig("infobar_selection", NULL)) != 0) reboot = 1;
    244                         if(ostrcmp(getskinconfig("infobar_selection", NULL), "infobar") != 0)
    245                                 addskinconfigscreencheck("infobar2_selection", "infobar2", "0");
    246                         if(ostrcmp(getskinconfig("infobar_selection", NULL), "infobar_v2") != 0)
    247                                 addskinconfigscreencheck("infobar2_selection", "infobar2_v2", "0");
    248                         if(ostrcmp(getskinconfig("infobar_selection", NULL), "infobar_v3") != 0)
    249                                 addskinconfigscreencheck("infobar2_selection", "infobar2_v3", "0");
     253
     254                        char* oldinfobar2_sel = getskinconfig("infobar2_selection", NULL);
     255                        addskinconfigscreencheck("infobar2_selection", infobar2_sel, "0");
     256                        if(ostrcmp(oldinfobar2_sel,getskinconfig("infobar2_selection", NULL)) != 0) reboot = 1;
    250257
    251258                        writeskinconfigtmp();
Note: See TracChangeset for help on using the changeset viewer.