aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2002-01-07 00:23:56 +0000
committerJason Rumney2002-01-07 00:23:56 +0000
commit27ad7b52a7b46a46461efad11931276d51f7c612 (patch)
tree6eea5694990f7b1ee513c14587fec351a889d193 /src
parent0b1e6b549bf36860245f074737c05390c65b45bb (diff)
downloademacs-27ad7b52a7b46a46461efad11931276d51f7c612.tar.gz
emacs-27ad7b52a7b46a46461efad11931276d51f7c612.zip
(set_frame_menubar, xmenu_show):
(xdialog_show): Initialize wv->help to Qnil.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 06b0f9f77ea..6ab1fad7a6f 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1645,6 +1645,7 @@ set_frame_menubar (f, first_time, deep_p)
1645 wv->value = 0; 1645 wv->value = 0;
1646 wv->enabled = 1; 1646 wv->enabled = 1;
1647 wv->button_type = BUTTON_TYPE_NONE; 1647 wv->button_type = BUTTON_TYPE_NONE;
1648 wv->help = Qnil;
1648 first_wv = wv; 1649 first_wv = wv;
1649 1650
1650 if (deep_p) 1651 if (deep_p)
@@ -1779,6 +1780,7 @@ set_frame_menubar (f, first_time, deep_p)
1779 wv->value = 0; 1780 wv->value = 0;
1780 wv->enabled = 1; 1781 wv->enabled = 1;
1781 wv->button_type = BUTTON_TYPE_NONE; 1782 wv->button_type = BUTTON_TYPE_NONE;
1783 wv->help = Qnil;
1782 /* This prevents lwlib from assuming this 1784 /* This prevents lwlib from assuming this
1783 menu item is really supposed to be empty. */ 1785 menu item is really supposed to be empty. */
1784 /* The EMACS_INT cast avoids a warning. 1786 /* The EMACS_INT cast avoids a warning.
@@ -2002,6 +2004,7 @@ xmenu_show (f, x, y, for_click, keymaps, title, error)
2002 wv->value = 0; 2004 wv->value = 0;
2003 wv->enabled = 1; 2005 wv->enabled = 1;
2004 wv->button_type = BUTTON_TYPE_NONE; 2006 wv->button_type = BUTTON_TYPE_NONE;
2007 wv->help =Qnil;
2005 first_wv = wv; 2008 first_wv = wv;
2006 first_pane = 1; 2009 first_pane = 1;
2007 2010
@@ -2070,6 +2073,7 @@ xmenu_show (f, x, y, for_click, keymaps, title, error)
2070 wv->value = 0; 2073 wv->value = 0;
2071 wv->enabled = 1; 2074 wv->enabled = 1;
2072 wv->button_type = BUTTON_TYPE_NONE; 2075 wv->button_type = BUTTON_TYPE_NONE;
2076 wv->help = Qnil;
2073 save_wv = wv; 2077 save_wv = wv;
2074 prev_wv = 0; 2078 prev_wv = 0;
2075 } 2079 }
@@ -2154,9 +2158,11 @@ xmenu_show (f, x, y, for_click, keymaps, title, error)
2154 2158
2155 wv_sep2->name = "--"; 2159 wv_sep2->name = "--";
2156 wv_sep2->next = first_wv->contents; 2160 wv_sep2->next = first_wv->contents;
2161 wv_sep2->help = Qnil;
2157 2162
2158 wv_sep1->name = "--"; 2163 wv_sep1->name = "--";
2159 wv_sep1->next = wv_sep2; 2164 wv_sep1->next = wv_sep2;
2165 wv_sep1->help = Qnil;
2160 2166
2161#ifndef HAVE_MULTILINGUAL_MENU 2167#ifndef HAVE_MULTILINGUAL_MENU
2162 if (STRING_MULTIBYTE (title)) 2168 if (STRING_MULTIBYTE (title))
@@ -2167,6 +2173,7 @@ xmenu_show (f, x, y, for_click, keymaps, title, error)
2167 wv_title->enabled = TRUE; 2173 wv_title->enabled = TRUE;
2168 wv_title->button_type = BUTTON_TYPE_NONE; 2174 wv_title->button_type = BUTTON_TYPE_NONE;
2169 wv_title->next = wv_sep1; 2175 wv_title->next = wv_sep1;
2176 wv_title->help = Qnil;
2170 first_wv->contents = wv_title; 2177 first_wv->contents = wv_title;
2171 } 2178 }
2172 2179
@@ -2370,6 +2377,7 @@ xdialog_show (f, keymaps, title, error)
2370 prev_wv->name++; 2377 prev_wv->name++;
2371 prev_wv->enabled = 1; 2378 prev_wv->enabled = 1;
2372 prev_wv->name = "message"; 2379 prev_wv->name = "message";
2380 prev_wv->help = Qnil;
2373 first_wv = prev_wv; 2381 first_wv = prev_wv;
2374 2382
2375 /* Loop over all panes and items, filling in the tree. */ 2383 /* Loop over all panes and items, filling in the tree. */
@@ -2413,6 +2421,7 @@ xdialog_show (f, keymaps, title, error)
2413 wv->value = (char *) XSTRING (item_name)->data; 2421 wv->value = (char *) XSTRING (item_name)->data;
2414 wv->call_data = (void *) &XVECTOR (menu_items)->contents[i]; 2422 wv->call_data = (void *) &XVECTOR (menu_items)->contents[i];
2415 wv->enabled = !NILP (enable); 2423 wv->enabled = !NILP (enable);
2424 wv->help = Qnil;
2416 prev_wv = wv; 2425 prev_wv = wv;
2417 2426
2418 if (! boundary_seen) 2427 if (! boundary_seen)
@@ -2429,7 +2438,7 @@ xdialog_show (f, keymaps, title, error)
2429 2438
2430 wv = xmalloc_widget_value (); 2439 wv = xmalloc_widget_value ();
2431 wv->name = dialog_name; 2440 wv->name = dialog_name;
2432 2441 wv->help = Qnil;
2433 /* Dialog boxes use a really stupid name encoding 2442 /* Dialog boxes use a really stupid name encoding
2434 which specifies how many buttons to use 2443 which specifies how many buttons to use
2435 and how many buttons are on the right. 2444 and how many buttons are on the right.