aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2001-11-15 22:53:54 +0000
committerJason Rumney2001-11-15 22:53:54 +0000
commit6f665da94994bf054a6d9a01e0337f455991cfdc (patch)
tree12caedeff10d2a1c8c5f2756c7e1065dc3fdbcb9 /src
parent9ce647f4049904cd4a30b3c62cac29da2ec0178e (diff)
downloademacs-6f665da94994bf054a6d9a01e0337f455991cfdc.tar.gz
emacs-6f665da94994bf054a6d9a01e0337f455991cfdc.zip
(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')
-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)
2085 } 2085 }
2086 /* Draw radio buttons and tickboxes. */ 2086 /* Draw radio buttons and tickboxes. */
2087 else if (wv->selected && (wv->button_type == BUTTON_TYPE_TOGGLE || 2087 else if (wv->selected && (wv->button_type == BUTTON_TYPE_TOGGLE ||
2088 wv->button_type == BUTTON_TYPE_RADIO)) 2088 wv->button_type == BUTTON_TYPE_RADIO))
2089 fuFlags |= MF_CHECKED; 2089 fuFlags |= MF_CHECKED;
2090 else 2090 else
2091 fuFlags |= MF_UNCHECKED; 2091 fuFlags |= MF_UNCHECKED;
@@ -2101,7 +2101,7 @@ add_menu_item (HMENU menu, widget_value *wv, HMENU item)
2101 out_string ); 2101 out_string );
2102 2102
2103 /* This must be done after the menu item is created. */ 2103 /* This must be done after the menu item is created. */
2104 if ((fuFlags & MF_STRING) != 0) 2104 if (!wv->title && wv->call_data != 0)
2105 { 2105 {
2106 HMODULE user32 = GetModuleHandle ("user32.dll"); 2106 HMODULE user32 = GetModuleHandle ("user32.dll");
2107 FARPROC set_menu_item_info = GetProcAddress (user32, "SetMenuItemInfoA"); 2107 FARPROC set_menu_item_info = GetProcAddress (user32, "SetMenuItemInfoA");