Changeset 32315
- Timestamp:
- 01/11/15 04:46:58 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/infobar.h
r32314 r32315 10 10 char* infobar_sel = getskinconfig("infobar_selection", NULL); 11 11 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 17 15 if(infobar_sel == NULL) { 18 16 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); 20 18 } 21 19 22 //if(infobar2_sel == NULL) ostrcat(infobar2_sel, "infobar2", 0, 0); // fallback to default23 //if(ostrcmp(infobar2_sel, NULL) == 0) {24 20 if(infobar2_sel == NULL) { 25 21 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); 27 23 } 28 24 29 25 struct skin* infobar1 = getscreen(infobar_sel); 30 debug(10, "get infobar1=%s", infobar_sel);26 debug(10, "get final infobar1=%s", infobar_sel); 31 27 struct skin* infobar2 = getscreen(infobar2_sel); 32 debug(10, "get infobar2=%s", infobar2_sel);28 debug(10, "get final infobar2=%s", infobar2_sel); 33 29 struct skin* infobar = infobar1; 34 30 struct skin* infobarm = infobar1;
Note: See TracChangeset
for help on using the changeset viewer.