X11: Reuse menu code to display files
Previously the code used the ASCII Text Athena widgets for displaying file contents. Unfortunately, the widget made it impossible to control scrolling or pretty much anything else. Use the menu code instead, making the file display window behave properly.
This commit is contained in:
@@ -819,6 +819,9 @@ menu_item **menu_list;
|
||||
XtSetArg(args[num_args], nhStr(XtNheight), menu_info->permi_h);
|
||||
num_args++;
|
||||
}
|
||||
if (wp->title) {
|
||||
XtSetArg(args[num_args], nhStr(XtNtitle), wp->title); num_args++;
|
||||
}
|
||||
wp->popup = XtCreatePopupShell((window == WIN_INVEN)
|
||||
? "inventory" : "menu",
|
||||
(how == PICK_NONE)
|
||||
|
||||
Reference in New Issue
Block a user