Commit fe8fa62f authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(set_frame_menubar): Use -1 for call_data

in the deep_p = 0 case.
parent 06c2c73d
......@@ -1732,6 +1732,11 @@ set_frame_menubar (f, first_time, deep_p)
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment