static void FileOpenCB(Widget w, void *udata, void *cdata) {
MainWindow *win = main_window;
- Widget dialog = XnCreateFileSelectionDialog(win->window, "dialog", NULL, 0);
+
+ Arg args[16];
+ int n = 0;
+
+ XtSetArg(args[n], XnNshowViewMenu, 1); n++;
+ Widget dialog = XnCreateFileSelectionDialog(win->window, "dialog", args, n);
XtAddCallback(dialog, XmNokCallback, (XtCallbackProc)filedialog_select, win);
XtAddCallback(dialog, XmNcancelCallback, (XtCallbackProc)filedialog_end, win);
+
+ Widget dirUp = XnFileSelectionBoxGetChild(dialog, XnFSB_DIR_UP_BUTTON);
+ XtUnmanageChild(dirUp);
+
XtManageChild(dialog);
}