Changeset 32315


Ignore:
Timestamp:
01/11/15 04:46:58 (9 years ago)
Author:
tobayer
Message:

[titan] add infobar selection, step 3, cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/infobar.h

    r32314 r32315  
    1010        char* infobar_sel = getskinconfig("infobar_selection", NULL);
    1111        char* infobar2_sel = getskinconfig("infobar2_selection", NULL);
    12         debug(10, "get infobar1=%s", infobar_sel);
    13         debug(10, "get infobar2=%s", infobar2_sel);
    14 
    15         //if(infobar_sel == NULL) ostrcat(infobar_sel, "infobar", 0, 0); // fallback to default
    16         //if(ostrcmp(infobar_sel, NULL) == 0) {
     12        debug(10, "get initial infobar1=%s", infobar_sel);
     13        debug(10, "get initial infobar2=%s", infobar2_sel);
     14
    1715        if(infobar_sel == NULL) {
    1816                infobar_sel = ostrcat(infobar_sel, "infobar", 0, 0); // fallback to default
    19                 debug(10, "fallback, set infobar1=%s", infobar_sel);
     17                debug(10, "fallback to default, set infobar1=%s", infobar_sel);
    2018        }
    2119
    22         //if(infobar2_sel == NULL) ostrcat(infobar2_sel, "infobar2", 0, 0); // fallback to default
    23         //if(ostrcmp(infobar2_sel, NULL) == 0) {
    2420        if(infobar2_sel == NULL) {
    2521                infobar2_sel = ostrcat(infobar2_sel, "infobar2", 0, 0); // fallback to default
    26                 debug(10, "fallback, set infobar2=%s", infobar2_sel);
     22                debug(10, "fallback to default, set infobar2=%s", infobar2_sel);
    2723        }
    2824
    2925        struct skin* infobar1 = getscreen(infobar_sel);
    30         debug(10, "get infobar1=%s", infobar_sel);
     26        debug(10, "get final infobar1=%s", infobar_sel);
    3127        struct skin* infobar2 = getscreen(infobar2_sel);
    32         debug(10, "get infobar2=%s", infobar2_sel);
     28        debug(10, "get final infobar2=%s", infobar2_sel);
    3329        struct skin* infobar = infobar1;
    3430        struct skin* infobarm = infobar1;
Note: See TracChangeset for help on using the changeset viewer.