Changeset 32308


Ignore:
Timestamp:
01/11/15 03:32:45 (8 years ago)
Author:
tobayer
Message:

[titan] add infobar selection, step 3, fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/infobar.h

    r32306 r32308  
    1010        char* infobar_sel = getskinconfig("infobar_selection", NULL);
    1111        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(infobar2_sel, "infobar2", 0, 0); // fallback to default
     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) ostrcat(infobar_sel, "infobar", 0, 0); // fallback to default
     17
     18        //if(infobar2_sel == NULL) ostrcat(infobar2_sel, "infobar2", 0, 0); // fallback to default
     19        if(ostrcmp(infobar2_sel, NULL) == 0) ostrcat(infobar2_sel, "infobar", 0, 0); // fallback to default
    1420
    1521        struct skin* infobar1 = getscreen(infobar_sel);
Note: See TracChangeset for help on using the changeset viewer.