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:
Pasi Kallinen
2018-10-27 13:51:32 +03:00
parent 1273d6817e
commit 6d70997869
3 changed files with 24 additions and 89 deletions

View File

@@ -202,6 +202,7 @@ struct xwindow {
XColor nh_colors[CLR_MAX];
XFontStruct *boldfs; /* Bold font */
Display *boldfs_dpy; /* Bold font display */
char *title;
union {
struct map_info_t *Map_info; /* map window info */