Changeset 15261
- Timestamp:
- 04/14/12 13:00:04 (11 years ago)
- Location:
- titan/titan
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/ipkg.h
r15249 r15261 553 553 554 554 tmpmlist = addmenulist(&mlist, tmpstr, tmpinfo, tmppic, 0, 0); 555 changemenulistparam(tmpmlist, node->showname );555 changemenulistparam(tmpmlist, node->showname, NULL); 556 556 free(tmpstr); tmpstr = NULL; 557 557 free(tmpinfo); tmpinfo = NULL; -
titan/titan/menulist.h
r15253 r15261 26 26 free(prev->param); 27 27 prev->param = NULL; 28 29 free(prev->param1); 30 prev->param1 = NULL; 28 31 } 29 32 … … 35 38 } 36 39 37 void changemenulistparam(struct menulist* mlist, char* param )40 void changemenulistparam(struct menulist* mlist, char* param, char* param1) 38 41 { 39 42 if(mlist != NULL) … … 41 44 free(mlist->param); 42 45 mlist->param = ostrcat(param, NULL, 0, 0); 46 47 free(mlist->param1); 48 mlist->param1 = ostrcat(param1, NULL, 0, 0); 43 49 } 44 50 } … … 114 120 // showpng = 2 (big icon) 115 121 //flag 1: rcgreen = subchannel 116 struct menulist* menulistbox (struct menulist* mlist, char* paramskinname, char* skintitle, char* paramskinpath, char* defaultpic, int showpng, int flag)122 struct menulist* menulistboxext(struct menulist* mlist, char* paramskinname, char* skintitle, char* paramskinpath, char* defaultpic, int showpng, int* rcreturn, int flag) 117 123 { 118 124 debug(1000, "in"); … … 126 132 char* tmppic = NULL; 127 133 char* tmpstr = NULL; 128 129 if(mlist == NULL) return 0;130 134 131 135 if(pthread_self() != status.mainthread) … … 249 253 addscreenrc(screen, listbox); 250 254 251 while 255 while(1) 252 256 { 253 257 rcret = waitrc(screen, 0, 0); 254 255 if(rcret==getrcconfigint("rcexit", NULL)) break; 256 if(flag == 1 && rcret==getrcconfigint("rcgreen", NULL)) 258 if(rcreturn != NULL) *rcreturn = rcret; 259 260 if(rcret == getrcconfigint("rcexit", NULL)) break; 261 if(flag == 1 && rcret == getrcconfigint("rcgreen", NULL)) 257 262 { 258 263 clearscreen(screen); … … 260 265 break; 261 266 } 262 if( listbox->select != NULL && rcret==getrcconfigint("rcok", NULL))267 if(rcret == getrcconfigint("rcok", NULL) || rcret == getrcconfigint("rcred", NULL) || rcret == getrcconfigint("rcgreen", NULL) || rcret == getrcconfigint("rcyellow", NULL) || rcret == getrcconfigint("rcblue", NULL)) 263 268 { 264 ret = (struct menulist*)listbox->select->handle; 269 if(rcreturn == NULL && rcret != getrcconfigint("rcok", NULL)) 270 continue; 271 272 if(listbox->select != NULL) 273 ret = (struct menulist*)listbox->select->handle; 265 274 break; 266 275 } … … 290 299 } 291 300 301 struct menulist* menulistbox(struct menulist* mlist, char* paramskinname, char* skintitle, char* paramskinpath, char* defaultpic, int showpng, int flag) 302 { 303 return menulistboxext(mlist, paramskinname, skintitle, paramskinpath, defaultpic, showpng, NULL, flag); 304 } 292 305 #endif -
titan/titan/struct.h
r15182 r15261 178 178 char* pic; 179 179 char* param; 180 char* param1; 180 181 int deaktiv; 181 182 int defaultentry;
Note: See TracChangeset
for help on using the changeset viewer.