diff options
| author | Karl Heuer | 1995-12-13 02:13:59 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-12-13 02:13:59 +0000 |
| commit | 976bef0e023039bec6c252de0b0eaf9565290e51 (patch) | |
| tree | 8927e35c5419cff6aa436dfbb81a79d9718323b6 /src | |
| parent | dea10df4d4a148327f0245a0f4b79cde81a6b734 (diff) | |
| download | emacs-976bef0e023039bec6c252de0b0eaf9565290e51.tar.gz emacs-976bef0e023039bec6c252de0b0eaf9565290e51.zip | |
(XMenuActivate): Display the menu pane title.
(XMenuLocate): Do not ignore pane title length when deciding on
menu location.
Diffstat (limited to 'src')
| -rw-r--r-- | src/msdos.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/msdos.c b/src/msdos.c index a05149eea33..4d3c4028117 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -1634,11 +1634,7 @@ void | |||
| 1634 | XMenuLocate (Display *foo0, XMenu *menu, int foo1, int foo2, int x, int y, | 1634 | XMenuLocate (Display *foo0, XMenu *menu, int foo1, int foo2, int x, int y, |
| 1635 | int *ulx, int *uly, int *width, int *height) | 1635 | int *ulx, int *uly, int *width, int *height) |
| 1636 | { | 1636 | { |
| 1637 | if (menu->count == 1 && menu->submenu[0]) | 1637 | IT_menu_calc_size (menu, width, height); |
| 1638 | /* Special case: the menu consists of only one pane. */ | ||
| 1639 | IT_menu_calc_size (menu->submenu[0], width, height); | ||
| 1640 | else | ||
| 1641 | IT_menu_calc_size (menu, width, height); | ||
| 1642 | *ulx = x + 1; | 1638 | *ulx = x + 1; |
| 1643 | *uly = y; | 1639 | *uly = y; |
| 1644 | *width += 2; | 1640 | *width += 2; |
| @@ -1693,6 +1689,8 @@ XMenuActivate (Display *foo, XMenu *menu, int *pane, int *selidx, | |||
| 1693 | state[0].menu = menu; | 1689 | state[0].menu = menu; |
| 1694 | mouse_off (); | 1690 | mouse_off (); |
| 1695 | ScreenRetrieve (state[0].screen_behind = xmalloc (screensize)); | 1691 | ScreenRetrieve (state[0].screen_behind = xmalloc (screensize)); |
| 1692 | |||
| 1693 | IT_menu_display (menu, y0 - 1, x0 - 1, faces); /* display the menu title */ | ||
| 1696 | if ((onepane = menu->count == 1 && menu->submenu[0])) | 1694 | if ((onepane = menu->count == 1 && menu->submenu[0])) |
| 1697 | { | 1695 | { |
| 1698 | menu->width = menu->submenu[0]->width; | 1696 | menu->width = menu->submenu[0]->width; |