diff options
Diffstat (limited to 'src/menu.c')
| -rw-r--r-- | src/menu.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/menu.c b/src/menu.c index e441d22ea04..4edd4ce33f9 100644 --- a/src/menu.c +++ b/src/menu.c | |||
| @@ -1284,6 +1284,14 @@ x_popup_menu_1 (Lisp_Object position, Lisp_Object menu) | |||
| 1284 | /* Search for a string appearing directly as an element of the keymap. | 1284 | /* Search for a string appearing directly as an element of the keymap. |
| 1285 | That string is the title of the menu. */ | 1285 | That string is the title of the menu. */ |
| 1286 | prompt = Fkeymap_prompt (keymap); | 1286 | prompt = Fkeymap_prompt (keymap); |
| 1287 | |||
| 1288 | #if defined (USE_GTK) || defined (HAVE_NS) | ||
| 1289 | if (STRINGP (prompt) | ||
| 1290 | && SCHARS (prompt) > 0 | ||
| 1291 | && !NILP (Fget_text_property (make_fixnum (0), Qhide, prompt))) | ||
| 1292 | title = Qnil; | ||
| 1293 | else | ||
| 1294 | #endif | ||
| 1287 | if (!NILP (prompt)) | 1295 | if (!NILP (prompt)) |
| 1288 | title = prompt; | 1296 | title = prompt; |
| 1289 | 1297 | ||