void chmodPopup(Widget w, FileWindowRec *fw, XtPointer call_data) { char message[MAXPATHLEN]; register int i; if (fw == NULL) fw = popup_fw; if (!fw->n_selections) return; chmode.fw = fw; for (i=0;; i++) if (fw->files[i]->selected) { chmode.file = i; break; } sprintf(message, _("Changing access permissions for %s"), chmode.fw->files[chmode.file]->name); XtVaSetValues(chmode.label, XtNlabel, (XtArgVal) message, NULL); setupTicks(); freeze = True; popupByCursor(chmode.shell, XtGrabExclusive); }
void movePopup(Widget w, FileWindowRec *fw, XtPointer call_data) { popups.fw = fw; popups.move_s[0] = '\0'; XtVaSetValues(move_questions[0].widget, XtNstring, (XtArgVal) popups.move_s, NULL); popupByCursor(popups.move, XtGrabExclusive); }
void renamePopup(FileWindowRec *fw, int i) { popups.fw = fw; popups.rename_s[0] = '\0'; XtVaSetValues(rename_questions[0].widget, XtNstring, (XtArgVal) popups.rename_s, NULL); strcpy(popups.rename_file, fw->files[i]->name); popupByCursor(popups.rename, XtGrabExclusive); }
int confirm(String s1, String s2, String s3) { XEvent e; MwLabelSet(label1, s1); MwLabelSet(label2, s2); MwLabelSet(label3, s3); popupByCursor(shell, XtGrabExclusive); confirm_flag = DontKnow; do { XtAppNextEvent(app_context, &e); XtDispatchEvent(&e); } while (confirm_flag == DontKnow); aborted = (confirm_flag == Abort); return (confirm_flag == Ok); }