comparison src/xmenu.c @ 16411:939831bf2103

(Fx_popup_menu): Give the menu a title when the menu is a single keymap.
author Richard M. Stallman <rms@gnu.org>
date Wed, 09 Oct 1996 04:56:48 +0000
parents 16fb6dcfa4e8
children 9cbbf721b91c
comparison
equal deleted inserted replaced
16410:454a13718b1f 16411:939831bf2103
878 keymap_panes (&menu, 1, NILP (position)); 878 keymap_panes (&menu, 1, NILP (position));
879 879
880 /* Search for a string appearing directly as an element of the keymap. 880 /* Search for a string appearing directly as an element of the keymap.
881 That string is the title of the menu. */ 881 That string is the title of the menu. */
882 prompt = map_prompt (keymap); 882 prompt = map_prompt (keymap);
883 if (NILP (title) && !NILP (prompt))
884 title = prompt;
883 885
884 /* Make that be the pane title of the first pane. */ 886 /* Make that be the pane title of the first pane. */
885 if (!NILP (prompt) && menu_items_n_panes >= 0) 887 if (!NILP (prompt) && menu_items_n_panes >= 0)
886 XVECTOR (menu_items)->contents[MENU_ITEMS_PANE_NAME] = prompt; 888 XVECTOR (menu_items)->contents[MENU_ITEMS_PANE_NAME] = prompt;
887 889