add: } else if (strcmp(command, "SHEXEC")==0) { WMSetTextFieldText(panel->proT, getItemParameter(item)); WMSetPopUpButtonSelectedItem(panel->cmdP, CpShExec); updateForItemType(panel, TShExec);
context: browserClick(WMWidget *w, void *data){    _Panel *panel = (_Panel*)data;    proplist_t item;    char *command;        /* stop shortcut capture */    panel->capturing = 0;    item = getItemOfSelectedEntry(panel->browser);    panel->editedItem = item;    /* set title */    WMSetTextFieldText(panel->labT, getItemTitle(item));    if (isMenu(item)) {	updateForItemType(panel, TNothing);	WMSetPopUpButtonEnabled(panel->cmd2P, True);	return;    } else {	int column = WMGetBrowserSelectedColumn(panel->browser);	if (column == WMGetBrowserNumberOfColumns(panel->browser)-1	    && column > 0)	    WMSetPopUpButtonEnabled(panel->cmd2P, True);	else	    WMSetPopUpButtonEnabled(panel->cmd2P, False);	if (column==WMGetBrowserFirstVisibleColumn(panel->browser)) {	    /* second column is empty, because selected item is not a submenu */	    WMSetTextFieldText(panel->tit2T, NULL);	}    }    command = getItemCommand(item);    WMSetTextFieldText(panel->shoT, getItemShortcut(item));        if (strcmp(command, "OPEN_MENU")==0) {	char *p, *c;		splitOpenMenuParameter(getItemParameter(item), &p, &c);	WMSetTextFieldText(panel->pathT, p);	WMSetTextFieldText(panel->proT, c);	if (p)	    free(p);	if (c)	    free(c);	updateForItemType(panel, TExternalMenu);    } else if (strcmp(command, "EXEC")==0) {	WMSetTextFieldText(panel->proT, getItemParameter(item));	WMSetPopUpButtonSelectedItem(panel->cmdP, CpExec);	updateForItemType(panel, TExec);    } else if (strcmp(command, "WORKSPACE_MENU")==0) {	updateForItemType(panel, TWSMenu);    } else if (strcmp(command, "EXIT")==0) {	WMSetPopUpButtonSelectedItem(panel->cmdP, CpExit);	updateForItemType(panel, TExit);    } else if (strcmp(command, "SHUTDOWN")==0) {	WMSetPopUpButtonSelectedItem(panel->cmdP, CpShutdown);	updateForItemType(panel, TExit);    } else if (strcmp(command, "RESTARTW")==0) {	WMSetPopUpButtonSelectedItem(panel->cmdP, CpRestartWM);	updateForItemType(panel, TRestartWM);    } else if (strcmp(command, "RESTART")==0) {	WMSetPopUpButtonSelectedItem(panel->cmdP, CpRestart);	WMSetTextFieldText(panel->proT, getItemParameter(item));	updateForItemType(panel, TRestart);    } else {	/* simple commands */	if (strcmp(command, "ARRANGE_ICONS")==0)	    WMSetPopUpButtonSelectedItem(panel->cmdP, CpArrange);	else if (strcmp(command, "HIDE_OTHERS")==0)	    WMSetPopUpButtonSelectedItem(panel->cmdP, CpHide);	else if (strcmp(command, "SHOW_ALL")==0)	    WMSetPopUpButtonSelectedItem(panel->cmdP, CpShow);	else if (strcmp(command, "SAVE_SESSION")==0)	    WMSetPopUpButtonSelectedItem(panel->cmdP, CpSaveSession);	else if (strcmp(command, "CLEAR_SESSION")==0)	    WMSetPopUpButtonSelectedItem(panel->cmdP, CpClearSession);	else if (strcmp(command, "REFRESH")==0)	    WMSetPopUpButtonSelectedItem(panel->cmdP, CpRefresh);	else if (strcmp(command, "INFO_PANEL")==0)	    WMSetPopUpButtonSelectedItem(panel->cmdP, CpInfo);	else if (strcmp(command, "LEGAL_PANEL")==0)	    WMSetPopUpButtonSelectedItem(panel->cmdP, CpLegal);	updateForItemType(panel, TSimpleCommand);    }}