aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Innes1998-07-13 19:54:15 +0000
committerAndrew Innes1998-07-13 19:54:15 +0000
commit070d1949d1c386a25d07ac8ac370de9c87698607 (patch)
tree9324d8b5fa9942710b950520fec5dcb9d05cb82f /src
parent538d05bb65154e139152fab2c260de219a6d4fe4 (diff)
downloademacs-070d1949d1c386a25d07ac8ac370de9c87698607.tar.gz
emacs-070d1949d1c386a25d07ac8ac370de9c87698607.zip
(add_menu_item): Draw menu items like titles if call_data is 0.
Diffstat (limited to 'src')
-rw-r--r--src/w32menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32menu.c b/src/w32menu.c
index 6c793ca87e5..8adaace306a 100644
--- a/src/w32menu.c
+++ b/src/w32menu.c
@@ -2047,7 +2047,7 @@ add_menu_item (HMENU menu, widget_value *wv, HMENU item)
2047 fuFlags = MF_SEPARATOR; 2047 fuFlags = MF_SEPARATOR;
2048 else 2048 else
2049 { 2049 {
2050 if (wv->enabled && wv->call_data != 0) 2050 if (wv->enabled)
2051 fuFlags = MF_STRING; 2051 fuFlags = MF_STRING;
2052 else 2052 else
2053 fuFlags = MF_STRING | MF_GRAYED; 2053 fuFlags = MF_STRING | MF_GRAYED;
@@ -2062,7 +2062,7 @@ add_menu_item (HMENU menu, widget_value *wv, HMENU item)
2062 else 2062 else
2063 out_string = wv->name; 2063 out_string = wv->name;
2064 2064
2065 if (wv->title) 2065 if (wv->title || wv->call_data == 0)
2066 { 2066 {
2067#if 0 /* no GC while popup menu is active */ 2067#if 0 /* no GC while popup menu is active */
2068 out_string = LocalAlloc (0, strlen (wv->name) + 1); 2068 out_string = LocalAlloc (0, strlen (wv->name) + 1);