changeset 22750:b38cb406ed80

(add_menu_item): Draw menu items like titles if call_data is 0.
author Andrew Innes <andrewi@gnu.org>
date Mon, 13 Jul 1998 19:54:15 +0000
parents 14bde44d261c
children 75c35003c69f
files src/w32menu.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32menu.c	Mon Jul 13 14:29:35 1998 +0000
+++ b/src/w32menu.c	Mon Jul 13 19:54:15 1998 +0000
@@ -2047,7 +2047,7 @@
     fuFlags = MF_SEPARATOR;
   else 
     {
-      if (wv->enabled && wv->call_data != 0)
+      if (wv->enabled)
 	fuFlags = MF_STRING;
       else
 	fuFlags = MF_STRING | MF_GRAYED;
@@ -2062,7 +2062,7 @@
       else
 	out_string = wv->name;
 
-      if (wv->title)
+      if (wv->title || wv->call_data == 0)
 	{
 #if 0  /* no GC while popup menu is active */
 	  out_string = LocalAlloc (0, strlen (wv->name) + 1);