Mercurial > emacs
changeset 15785:9902d8a8a548
(set_frame_menubar): Use -1 for call_data
in the deep_p = 0 case.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 25 Jul 1996 08:50:26 +0000 |
parents | 75547616a6fe |
children | f2d0e8928d57 |
files | src/xmenu.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xmenu.c Thu Jul 25 07:14:14 1996 +0000 +++ b/src/xmenu.c Thu Jul 25 08:50:26 1996 +0000 @@ -1732,6 +1732,11 @@ wv->name = (char *) XSTRING (string)->data; wv->value = 0; wv->enabled = 1; + /* This prevents lwlib from assuming this + menu item is really supposed to be empty. */ + /* The EMACS_INT cast avoids a warning. + This value just has to be different from small integers. */ + wv->call_data = (void *) (EMACS_INT) (-1); if (prev_wv) prev_wv->next = wv;