aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2002-01-07 00:26:57 +0000
committerJason Rumney2002-01-07 00:26:57 +0000
commit2d10309fea7ab8baf1a05ac9df19c65ff2c6f5dd (patch)
tree666bdda718b3eb2f840c949d567762058d84e480
parent27ad7b52a7b46a46461efad11931276d51f7c612 (diff)
downloademacs-2d10309fea7ab8baf1a05ac9df19c65ff2c6f5dd.tar.gz
emacs-2d10309fea7ab8baf1a05ac9df19c65ff2c6f5dd.zip
(single_submenu, set_frame_menubar, w32_menu_show):
(w32_dialog_show): Initialize wv->help to Qnil.
-rw-r--r--src/ChangeLog8
-rw-r--r--src/w32menu.c11
2 files changed, 19 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index cb65129f107..604695251c6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12002-01-07 Jason Rumney <jasonr@gnu.org>
2
3 * xmenu.c (set_frame_menubar, xmenu_show):
4 (xdialog_show): Initialize wv->help to Qnil.
5
6 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
7 (w32_dialog_show): Initialize wv->help to Qnil.
8
12002-01-06 Jason Rumney <jasonr@gnu.org> 92002-01-06 Jason Rumney <jasonr@gnu.org>
2 10
3 * xmenu.c (single_submenu): Initialize wv->help to Qnil. 11 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
diff --git a/src/w32menu.c b/src/w32menu.c
index 03ffb301f01..f306ce90471 100644
--- a/src/w32menu.c
+++ b/src/w32menu.c
@@ -1143,6 +1143,7 @@ single_submenu (item_key, item_name, maps)
1143 wv->value = 0; 1143 wv->value = 0;
1144 wv->enabled = 1; 1144 wv->enabled = 1;
1145 wv->button_type = BUTTON_TYPE_NONE; 1145 wv->button_type = BUTTON_TYPE_NONE;
1146 wv->help = Qnil;
1146 first_wv = wv; 1147 first_wv = wv;
1147 save_wv = 0; 1148 save_wv = 0;
1148 prev_wv = 0; 1149 prev_wv = 0;
@@ -1215,6 +1216,7 @@ single_submenu (item_key, item_name, maps)
1215 wv->value = 0; 1216 wv->value = 0;
1216 wv->enabled = 1; 1217 wv->enabled = 1;
1217 wv->button_type = BUTTON_TYPE_NONE; 1218 wv->button_type = BUTTON_TYPE_NONE;
1219 wv->help = Qnil;
1218 } 1220 }
1219 save_wv = wv; 1221 save_wv = wv;
1220 prev_wv = 0; 1222 prev_wv = 0;
@@ -1327,6 +1329,7 @@ set_frame_menubar (f, first_time, deep_p)
1327 wv->value = 0; 1329 wv->value = 0;
1328 wv->enabled = 1; 1330 wv->enabled = 1;
1329 wv->button_type = BUTTON_TYPE_NONE; 1331 wv->button_type = BUTTON_TYPE_NONE;
1332 wv->help = Qnil;
1330 first_wv = wv; 1333 first_wv = wv;
1331 1334
1332 if (deep_p) 1335 if (deep_p)
@@ -1463,6 +1466,7 @@ set_frame_menubar (f, first_time, deep_p)
1463 wv->value = 0; 1466 wv->value = 0;
1464 wv->enabled = 1; 1467 wv->enabled = 1;
1465 wv->button_type = BUTTON_TYPE_NONE; 1468 wv->button_type = BUTTON_TYPE_NONE;
1469 wv->help = Qnil;
1466 /* This prevents lwlib from assuming this 1470 /* This prevents lwlib from assuming this
1467 menu item is really supposed to be empty. */ 1471 menu item is really supposed to be empty. */
1468 /* The EMACS_INT cast avoids a warning. 1472 /* The EMACS_INT cast avoids a warning.
@@ -1604,6 +1608,7 @@ w32_menu_show (f, x, y, for_click, keymaps, title, error)
1604 wv->value = 0; 1608 wv->value = 0;
1605 wv->enabled = 1; 1609 wv->enabled = 1;
1606 wv->button_type = BUTTON_TYPE_NONE; 1610 wv->button_type = BUTTON_TYPE_NONE;
1611 wv->Qnil;
1607 first_wv = wv; 1612 first_wv = wv;
1608 first_pane = 1; 1613 first_pane = 1;
1609 1614
@@ -1670,6 +1675,7 @@ w32_menu_show (f, x, y, for_click, keymaps, title, error)
1670 wv->value = 0; 1675 wv->value = 0;
1671 wv->enabled = 1; 1676 wv->enabled = 1;
1672 wv->button_type = BUTTON_TYPE_NONE; 1677 wv->button_type = BUTTON_TYPE_NONE;
1678 wv->help = Qnil;
1673 save_wv = wv; 1679 save_wv = wv;
1674 prev_wv = 0; 1680 prev_wv = 0;
1675 } 1681 }
@@ -1752,6 +1758,7 @@ w32_menu_show (f, x, y, for_click, keymaps, title, error)
1752 so that it looks better. Having two separators looks odd. */ 1758 so that it looks better. Having two separators looks odd. */
1753 wv_sep->name = "--"; 1759 wv_sep->name = "--";
1754 wv_sep->next = first_wv->contents; 1760 wv_sep->next = first_wv->contents;
1761 wv_sep->help = Qnil;
1755 1762
1756#ifndef HAVE_MULTILINGUAL_MENU 1763#ifndef HAVE_MULTILINGUAL_MENU
1757 if (STRING_MULTIBYTE (title)) 1764 if (STRING_MULTIBYTE (title))
@@ -1761,6 +1768,7 @@ w32_menu_show (f, x, y, for_click, keymaps, title, error)
1761 wv_title->enabled = TRUE; 1768 wv_title->enabled = TRUE;
1762 wv_title->title = TRUE; 1769 wv_title->title = TRUE;
1763 wv_title->button_type = BUTTON_TYPE_NONE; 1770 wv_title->button_type = BUTTON_TYPE_NONE;
1771 wv_title->help = Qnil;
1764 wv_title->next = wv_sep; 1772 wv_title->next = wv_sep;
1765 first_wv->contents = wv_title; 1773 first_wv->contents = wv_title;
1766 } 1774 }
@@ -1896,6 +1904,7 @@ w32_dialog_show (f, keymaps, title, error)
1896 prev_wv->name++; 1904 prev_wv->name++;
1897 prev_wv->enabled = 1; 1905 prev_wv->enabled = 1;
1898 prev_wv->name = "message"; 1906 prev_wv->name = "message";
1907 prev_wv->help = Qnil;
1899 first_wv = prev_wv; 1908 first_wv = prev_wv;
1900 1909
1901 /* Loop over all panes and items, filling in the tree. */ 1910 /* Loop over all panes and items, filling in the tree. */
@@ -1941,6 +1950,7 @@ w32_dialog_show (f, keymaps, title, error)
1941 wv->value = (char *) XSTRING (item_name)->data; 1950 wv->value = (char *) XSTRING (item_name)->data;
1942 wv->call_data = (void *) &XVECTOR (menu_items)->contents[i]; 1951 wv->call_data = (void *) &XVECTOR (menu_items)->contents[i];
1943 wv->enabled = !NILP (enable); 1952 wv->enabled = !NILP (enable);
1953 wv->help = Qnil;
1944 prev_wv = wv; 1954 prev_wv = wv;
1945 1955
1946 if (! boundary_seen) 1956 if (! boundary_seen)
@@ -1957,6 +1967,7 @@ w32_dialog_show (f, keymaps, title, error)
1957 1967
1958 wv = xmalloc_widget_value (); 1968 wv = xmalloc_widget_value ();
1959 wv->name = dialog_name; 1969 wv->name = dialog_name;
1970 wv->help = Qnil;
1960 1971
1961 /* Dialog boxes use a really stupid name encoding 1972 /* Dialog boxes use a really stupid name encoding
1962 which specifies how many buttons to use 1973 which specifies how many buttons to use