diff options
Diffstat (limited to 'src/xmenu.c')
| -rw-r--r-- | src/xmenu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index eddda3ef91b..040bb6df622 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* X Communication module for terminals which understand the X protocol. | 1 | /* X Communication module for terminals which understand the X protocol. |
| 2 | Copyright (C) 1986, 88, 93, 94, 96, 99, 2000, 2001, 2003 | 2 | Copyright (C) 1986, 1988, 1993, 1994, 1996, 1999, 2000, 2001, 2003, 2004 |
| 3 | Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -1801,7 +1801,7 @@ update_submenu_strings (first_wv) | |||
| 1801 | 1801 | ||
| 1802 | for (wv = first_wv; wv; wv = wv->next) | 1802 | for (wv = first_wv; wv; wv = wv->next) |
| 1803 | { | 1803 | { |
| 1804 | if (wv->lname && ! NILP (wv->lname)) | 1804 | if (STRINGP (wv->lname)) |
| 1805 | { | 1805 | { |
| 1806 | wv->name = SDATA (wv->lname); | 1806 | wv->name = SDATA (wv->lname); |
| 1807 | 1807 | ||
| @@ -1815,7 +1815,7 @@ update_submenu_strings (first_wv) | |||
| 1815 | } | 1815 | } |
| 1816 | } | 1816 | } |
| 1817 | 1817 | ||
| 1818 | if (wv->lkey && ! NILP (wv->lkey)) | 1818 | if (STRINGP (wv->lkey)) |
| 1819 | wv->key = SDATA (wv->lkey); | 1819 | wv->key = SDATA (wv->lkey); |
| 1820 | 1820 | ||
| 1821 | if (wv->contents) | 1821 | if (wv->contents) |
| @@ -1888,7 +1888,7 @@ set_frame_menubar (f, first_time, deep_p) | |||
| 1888 | #endif | 1888 | #endif |
| 1889 | Lisp_Object items; | 1889 | Lisp_Object items; |
| 1890 | widget_value *wv, *first_wv, *prev_wv = 0; | 1890 | widget_value *wv, *first_wv, *prev_wv = 0; |
| 1891 | int i, last_i; | 1891 | int i, last_i = 0; |
| 1892 | int *submenu_start, *submenu_end; | 1892 | int *submenu_start, *submenu_end; |
| 1893 | int *submenu_top_level_items, *submenu_n_panes; | 1893 | int *submenu_top_level_items, *submenu_n_panes; |
| 1894 | 1894 | ||