rem: WMRunAlertPanel(WMWidgetScreen(panel->win), panel->win, _("Warning"), _("Any changes made in this section will not be saved"), _("OK"), NULL, NULL);
add: WMSetPopUpButtonEnabled(panel->cmd1P, False); WMSetPopUpButtonEnabled(panel->cmd2P, False);
context: showData(_Panel *panel){    char *gspath;    char *menuPath;    proplist_t menu, pmenu, plPath;    char buffer[512];    int hasWSMenu=0;    gspath = wusergnusteppath();        menuPath = wmalloc(strlen(gspath)+32);    strcpy(menuPath, gspath);    free(gspath);    strcat(menuPath, "/Defaults/WMRootMenu");        menu = PLGetProplistWithPath(menuPath);    pmenu = NULL;    if (!menu || !PLIsArray(menu)) {	sprintf(buffer, _("The format of the menu in ~/G/D/WMRootMenu is "		"not recognized by WPrefs. It might be in a format different "		"than the one supported by WPrefs or contain a syntax error. "		"Do you want to continue using the current menu to edit "		"it by hand later or replace it with a default menu in the new "		"format?"));	if (WMRunAlertPanel(WMWidgetScreen(panel->win), panel->win,			    _("Warning"), buffer, _("Keep current menu"),			    _("Install default menu"), NULL)!=WAPRDefault) {	    panel->dontSave = 0;	    pmenu = getDefaultMenu(panel, &hasWSMenu);	} else {	    WMRunAlertPanel(WMWidgetScreen(panel->win), panel->win,			    _("Warning"), _("Any changes made in this section will not be saved"),			    _("OK"), NULL, NULL);	    panel->dontSave = 1;	}	if (!pmenu) {	    pmenu = PLMakeArrayFromElements(PLMakeString("Applications"),					    NULL);	}    } else {	pmenu = preProcessMenu(menu, &hasWSMenu);    }    plPath = PLMakeString(menuPath);    free(menuPath);    PLSetFilename(pmenu, plPath);    PLRelease(plPath);    if (menu)        PLRelease(menu);        if (panel->itemClipboard) {	PLRelease(panel->itemClipboard);	panel->itemClipboard = NULL;    }    panel->menu = pmenu;    panel->editedItem = NULL;    panel->capturing = 0;    WMSetPopUpButtonItemEnabled(panel->cmd1P, CPaste, False);    WMSetPopUpButtonItemEnabled(panel->cmd2P, CPaste, False);    if (hasWSMenu) {	WMSetPopUpButtonItemEnabled(panel->cmd1P, CAddWorkspace, False);	WMSetPopUpButtonItemEnabled(panel->cmd2P, CAddWorkspace, False);    }    WMLoadBrowserColumnZero(panel->browser);    updateForItemType(panel, TNothing);}