Mercurial > emacs
comparison src/xmenu.c @ 56959:dc35c2e20d41
(update_submenu_strings): YAILOM.
(set_frame_menubar): Make sure last_i is initialized.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Tue, 07 Sep 2004 05:52:52 +0000 |
parents | 7201186afcb7 |
children | 1f473607c4a9 42acc7fa8a4f cce1c0ee76ee |
comparison
equal
deleted
inserted
replaced
56958:9aadc2889a41 | 56959:dc35c2e20d41 |
---|---|
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. |
6 | 6 |
7 GNU Emacs is free software; you can redistribute it and/or modify | 7 GNU Emacs is free software; you can redistribute it and/or modify |
1799 { | 1799 { |
1800 widget_value *wv; | 1800 widget_value *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 |
1808 /* Ignore the @ that means "separate pane". | 1808 /* Ignore the @ that means "separate pane". |
1809 This is a kludge, but this isn't worth more time. */ | 1809 This is a kludge, but this isn't worth more time. */ |
1813 wv->name++; | 1813 wv->name++; |
1814 wv->value = 0; | 1814 wv->value = 0; |
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) |
1822 update_submenu_strings (wv->contents); | 1822 update_submenu_strings (wv->contents); |
1823 } | 1823 } |
1886 #ifdef USE_X_TOOLKIT | 1886 #ifdef USE_X_TOOLKIT |
1887 LWLIB_ID id; | 1887 LWLIB_ID id; |
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 |
1895 | 1895 |
1896 XSETFRAME (Vmenu_updating_frame, f); | 1896 XSETFRAME (Vmenu_updating_frame, f); |