diff options
| author | Richard M. Stallman | 1996-07-25 08:50:26 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-07-25 08:50:26 +0000 |
| commit | fe8fa62fb603090b06cf40ee47c58e93f5508869 (patch) | |
| tree | ab0997fd725e33b04f3950b62658f8a1b8347375 /src | |
| parent | 06c2c73de9c39fd779a291d68c5457218bd423c3 (diff) | |
| download | emacs-fe8fa62fb603090b06cf40ee47c58e93f5508869.tar.gz emacs-fe8fa62fb603090b06cf40ee47c58e93f5508869.zip | |
(set_frame_menubar): Use -1 for call_data
in the deep_p = 0 case.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xmenu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index ee78f290225..bc9a9fb5b45 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -1732,6 +1732,11 @@ set_frame_menubar (f, first_time, deep_p) | |||
| 1732 | wv->name = (char *) XSTRING (string)->data; | 1732 | wv->name = (char *) XSTRING (string)->data; |
| 1733 | wv->value = 0; | 1733 | wv->value = 0; |
| 1734 | wv->enabled = 1; | 1734 | wv->enabled = 1; |
| 1735 | /* This prevents lwlib from assuming this | ||
| 1736 | menu item is really supposed to be empty. */ | ||
| 1737 | /* The EMACS_INT cast avoids a warning. | ||
| 1738 | This value just has to be different from small integers. */ | ||
| 1739 | wv->call_data = (void *) (EMACS_INT) (-1); | ||
| 1735 | 1740 | ||
| 1736 | if (prev_wv) | 1741 | if (prev_wv) |
| 1737 | prev_wv->next = wv; | 1742 | prev_wv->next = wv; |