add: } break; case CpShExec: if (strcmp(getItemCommand(panel->editedItem), "SHEXEC")!=0) { changeItemCommand(panel->editedItem, "SHEXEC"); tmp = WMGetTextFieldText(panel->proT); changeItemParameter(panel->editedItem, tmp); free(tmp); updateForItemType(panel, TShExec);
context: changedCommand(WMWidget *w, void *data){    _Panel *panel = (_Panel*)data;    int i;    char *tmp;    panel->unsaved = 1;    i = WMGetPopUpButtonSelectedItem(panel->cmdP);    changeItemParameter(panel->editedItem, "");    switch (i) {     case CpExec:	if (strcmp(getItemCommand(panel->editedItem), "EXEC")!=0) {	    changeItemCommand(panel->editedItem, "EXEC");	    tmp = WMGetTextFieldText(panel->proT);	    changeItemParameter(panel->editedItem, tmp);	    free(tmp);	    updateForItemType(panel, TExec);	}	break;     case CpArrange:	if (strcmp(getItemCommand(panel->editedItem), "ARRANGE_ICONS")!=0) {	    changeItemCommand(panel->editedItem, "ARRANGE_ICONS");	    updateForItemType(panel, TSimpleCommand);	}	break;     case CpHide:	if (strcmp(getItemCommand(panel->editedItem), "HIDE_OTHERS")!=0) {	    changeItemCommand(panel->editedItem, "HIDE_OTHERS");	    updateForItemType(panel, TSimpleCommand);	}	break;     case CpShow:	if (strcmp(getItemCommand(panel->editedItem), "SHOW_ALL")!=0) {	    changeItemCommand(panel->editedItem, "SHOW_ALL");	    updateForItemType(panel, TSimpleCommand);	}	break;     case CpExit:	if (strcmp(getItemCommand(panel->editedItem), "EXIT")!=0) {	    changeItemCommand(panel->editedItem, "EXIT");	    updateForItemType(panel, TExit);	}	if (WMGetButtonSelected(panel->noconfirmB))	    changeItemParameter(panel->editedItem, "QUICK");	else	    changeItemParameter(panel->editedItem, "");	break;     case CpShutdown:	if (strcmp(getItemCommand(panel->editedItem), "SHUTDOWN")!=0) {	    changeItemCommand(panel->editedItem, "SHUTDOWN");	    updateForItemType(panel, TExit);	}	if (WMGetButtonSelected(panel->noconfirmB))	    changeItemParameter(panel->editedItem, "QUICK");	else	    changeItemParameter(panel->editedItem, "");	break;     case CpRestartWM:	changeItemCommand(panel->editedItem, "RESTARTW");	updateForItemType(panel, TRestartWM);	break;     case CpRestart:	changeItemCommand(panel->editedItem, "RESTART");	updateForItemType(panel, TRestart);	tmp = WMGetTextFieldText(panel->proT);	changeItemParameter(panel->editedItem, tmp);	free(tmp);	break;     case CpSaveSession:	if (strcmp(getItemCommand(panel->editedItem), "SAVE_SESSION")!=0) {	    changeItemCommand(panel->editedItem, "SAVE_SESSION");	    updateForItemType(panel, TSimpleCommand);	}	break;     case CpClearSession:	if (strcmp(getItemCommand(panel->editedItem), "CLEAR_SESSION")!=0) {	    changeItemCommand(panel->editedItem, "CLEAR_SESSION");	    updateForItemType(panel, TSimpleCommand);	}	break;     case CpRefresh:	if (strcmp(getItemCommand(panel->editedItem), "REFRESH")!=0) {	    changeItemCommand(panel->editedItem, "REFRESH");	    updateForItemType(panel, TSimpleCommand);	}	break;     case CpInfo:	if (strcmp(getItemCommand(panel->editedItem), "INFO_PANEL")!=0) {	    changeItemCommand(panel->editedItem, "INFO_PANEL");	    updateForItemType(panel, TSimpleCommand);	}	break;     case CpLegal:	if (strcmp(getItemCommand(panel->editedItem), "LEGAL_PANEL")!=0) {	    changeItemCommand(panel->editedItem, "LEGAL_PANEL");	    updateForItemType(panel, TSimpleCommand);	}	break;    }}