Changeset 15207
- Timestamp:
- 04/10/12 18:40:43 (10 years ago)
- Location:
- titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/panel/panel_extensions.h
r15195 r15207 66 66 { 67 67 ipkg_list_installed(); 68 mbox = ipkmenulist(mlist, NULL, "Ipk Remove - select file", "%pluginpath%/panel/skin", NULL, 1, 0);68 mbox = ipkmenulist(mlist, NULL, "Ipk Remove - select file", "%pluginpath%/panel/skin", NULL, 1, 2); 69 69 70 70 if(mbox != NULL) -
titan/titan/ipkg.h
r15205 r15207 459 459 //flag 0: show section 460 460 //flag 1: show entrys 461 //flag 2: show entrys for remove 461 462 struct menulist* ipkmenulist(struct menulist* mlist, char* paramskinname, char* skintitle, char* paramskinpath, char* section, int showpng, int flag) 462 463 { … … 478 479 while(node != NULL) 479 480 { 480 if(flag == 0 )481 if(flag == 0 || flag == 3) 481 482 { 482 //check if section have seen 483 if(findsectiondone(node->section) == 1) 484 { 485 node = node->next; 486 continue; 483 if(flag == 0) 484 { 485 //check if section have seen 486 if(findsectiondone(node->section) == 1) 487 { 488 node = node->next; 489 continue; 490 } 487 491 } 488 492 … … 490 494 tmppic = ostrcat(tmppic, ".png", 1, 0); 491 495 492 node->done = 1; 493 addmenulist(&mlist, node->section, NULL, tmppic, 0, 0); 496 if(flag == 0) 497 { 498 node->done = 1; 499 addmenulist(&mlist, node->section, NULL, tmppic, 0, 0); 500 } 501 502 if(flag == 3) 503 { 504 tmpstr = ostrcat(tmpstr, node->section, 1, 0); 505 tmpstr = ostrcat(tmpstr, "-", 1, 0); 506 tmpstr = ostrcat(tmpstr, node->showname, 1, 0); 507 addmenulist(&mlist, tmpstr, NULL, tmppic, 0, 0); 508 free(tmpstr); tmpstr = NULL; 509 } 510 494 511 free(tmppic); tmppic = NULL; 495 512 }
Note: See TracChangeset
for help on using the changeset viewer.