Changeset 12314
- Timestamp:
- Dec 14, 2011, 12:42:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/panel/panel_ipk.h
r11419 r12314 16 16 int rcret = 0; 17 17 18 if 18 if(str == NULL) 19 19 return 0; 20 20 21 if (skinname == NULL){ 21 if(skinname == NULL) 22 { 22 23 debug(60, "skinname default=menulist"); 23 24 skinname1 = ostrcat(skinname, "menulist", 1, 0); 24 } else { 25 } 26 else 27 { 25 28 debug(60, "skinname changed=%s", skinname); 26 29 skinname1 = ostrcat(skinname, "", 0, 0); 27 30 } 28 31 29 if (skinpath == NULL){ 32 if(skinpath == NULL 33 { 30 34 debug(60, "skinpath default=skin/"); 31 35 skinpath1 = ostrcat(skinpath, "skin/", 1, 0); 32 } else { 36 } 37 else 38 { 33 39 debug(60, "skinpath changed=%s", skinpath); 34 40 skinpath1 = ostrcat(skinpath, "", 0, 0); … … 41 47 listbox->aktline = 1; 42 48 43 if(skintitle != NULL){ 49 if(skintitle != NULL) 50 { 44 51 debug(60, "skintitle changed=%s", skintitle); 45 52 changetitle(screen, _(skintitle)); … … 86 93 debug(60, "check1: (%d)-(%d) %s", i, a, (&ret3[a])->part); 87 94 debug(60, "check2: (%d)-(%d) %s", i, a, (&ret1[i])->part); 88 if(string_find((&ret3[a])->part,(&ret1[i])->part)){ 95 if(string_find((&ret3[a])->part,(&ret1[i])->part)) 96 { 89 97 debug(60, "set skiped=1"); 90 98 skip = 1; … … 171 179 } 172 180 else 173 {174 181 debug(60, "showpng default=%d", showpng); 175 }176 182 177 183 if(ostrcmp((&ret1[i])->part, "\t") == 0) … … 181 187 if(showpng == 1) 182 188 { 183 if(string_find("%pluginpath%",skinpath1)){ 189 if(string_find("%pluginpath%",skinpath1)) 190 { 184 191 struct splitstr* ret6 = NULL; 185 192 int count6 = 0; … … 199 206 } 200 207 free(ret6), ret6 = NULL; 201 } else { 208 } 209 else 210 { 202 211 defaultdir = ostrcat(getconfig("skinpath", NULL), skinpath1, 0, 0); 203 212 defaultdir = ostrcat(defaultdir, "/skin/panel_", 0, 0); … … 268 277 debug(60, "(&ret5[0])->part %s", (&ret5[0])->part); 269 278 270 if(ostrcmp((&ret5[0])->part, "add") == 0){ 279 if(ostrcmp((&ret5[0])->part, "add") == 0) 280 { 271 281 defaultdir = ostrcat("", (&ret1[i])->part, 0, 0); 272 282 defaultdir = ostrcat(defaultdir, ".png", 1, 0); 273 } else { 283 } 284 else 285 { 274 286 defaultdir = ostrcat("", (&ret5[0])->part, 0, 0); 275 287 defaultdir = ostrcat(defaultdir, ".png", 1, 0);
Note: See TracChangeset
for help on using the changeset viewer.