summaryrefslogtreecommitdiff
path: root/src/w32menu.c
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2001-11-15 22:53:54 +0000
committerJason Rumney <jasonr@gnu.org>2001-11-15 22:53:54 +0000
commit6f665da94994bf054a6d9a01e0337f455991cfdc (patch)
tree12caedeff10d2a1c8c5f2756c7e1065dc3fdbcb9 /src/w32menu.c
parent9ce647f4049904cd4a30b3c62cac29da2ec0178e (diff)
downloademacs-6f665da94994bf054a6d9a01e0337f455991cfdc.tar.gz
(add-menu-item): Make help_echo and radio buttons
work for most menu items. From David Ponce <david.ponce@wanadoo.fr>.
Diffstat (limited to 'src/w32menu.c')
-rw-r--r--src/w32menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32menu.c b/src/w32menu.c
index 2bf57e1870c..46252f17a56 100644
--- a/src/w32menu.c
+++ b/src/w32menu.c
@@ -2085,7 +2085,7 @@ add_menu_item (HMENU menu, widget_value *wv, HMENU item)
}
/* Draw radio buttons and tickboxes. */
else if (wv->selected && (wv->button_type == BUTTON_TYPE_TOGGLE ||
- wv->button_type == BUTTON_TYPE_RADIO))
+ wv->button_type == BUTTON_TYPE_RADIO))
fuFlags |= MF_CHECKED;
else
fuFlags |= MF_UNCHECKED;
@@ -2101,7 +2101,7 @@ add_menu_item (HMENU menu, widget_value *wv, HMENU item)
out_string );
/* This must be done after the menu item is created. */
- if ((fuFlags & MF_STRING) != 0)
+ if (!wv->title && wv->call_data != 0)
{
HMODULE user32 = GetModuleHandle ("user32.dll");
FARPROC set_menu_item_info = GetProcAddress (user32, "SetMenuItemInfoA");