diff options
| author | Karl Heuer | 1995-06-09 01:11:36 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-06-09 01:11:36 +0000 |
| commit | 21af8a68c8037673aa7da2350ae1f61dc9634fb0 (patch) | |
| tree | 17150ef54d7763ec12d167a588a4be8e3cc7cc70 /src | |
| parent | 1e79ec2421054e89ec4451e82377f532f8a5be82 (diff) | |
| download | emacs-21af8a68c8037673aa7da2350ae1f61dc9634fb0.tar.gz emacs-21af8a68c8037673aa7da2350ae1f61dc9634fb0.zip | |
(xmenu_show): Do call lw_destroy_all_widgets.
(xdialog_show): Likewise.
(popup_get_selection): Don't call it here.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xmenu.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index d6e42039fbe..7e4db362faa 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -1083,7 +1083,6 @@ popup_get_selection (initial_event, dpyinfo, id) | |||
| 1083 | else if (event.type == KeyPress | 1083 | else if (event.type == KeyPress |
| 1084 | && dpyinfo->display == event.xbutton.display) | 1084 | && dpyinfo->display == event.xbutton.display) |
| 1085 | { | 1085 | { |
| 1086 | lw_destroy_all_widgets (id); | ||
| 1087 | popup_activated_flag = 0; | 1086 | popup_activated_flag = 0; |
| 1088 | break; | 1087 | break; |
| 1089 | } | 1088 | } |
| @@ -1862,13 +1861,11 @@ xmenu_show (f, x, y, for_click, keymaps, title, error) | |||
| 1862 | /* Process events that apply to the menu. */ | 1861 | /* Process events that apply to the menu. */ |
| 1863 | popup_get_selection ((XEvent *) 0, FRAME_X_DISPLAY_INFO (f), menu_id); | 1862 | popup_get_selection ((XEvent *) 0, FRAME_X_DISPLAY_INFO (f), menu_id); |
| 1864 | 1863 | ||
| 1865 | #if 0 | ||
| 1866 | /* fp turned off the following statement and wrote a comment | 1864 | /* fp turned off the following statement and wrote a comment |
| 1867 | that it is unnecessary--that the menu has already disappeared. | 1865 | that it is unnecessary--that the menu has already disappeared. |
| 1868 | I observer that is not so. -- rms. */ | 1866 | Nowadays the menu disappears ok, all right, but |
| 1869 | /* Make sure the menu disappears. */ | 1867 | we need to delete the widgets or multiple ones will pile up. */ |
| 1870 | lw_destroy_all_widgets (menu_id); | 1868 | lw_destroy_all_widgets (menu_id); |
| 1871 | #endif | ||
| 1872 | 1869 | ||
| 1873 | /* Find the selected item, and its pane, to return | 1870 | /* Find the selected item, and its pane, to return |
| 1874 | the proper value. */ | 1871 | the proper value. */ |
| @@ -2080,6 +2077,8 @@ xdialog_show (f, keymaps, title, error) | |||
| 2080 | /* Process events that apply to the menu. */ | 2077 | /* Process events that apply to the menu. */ |
| 2081 | popup_get_selection ((XEvent *) 0, FRAME_X_DISPLAY_INFO (f), dialog_id); | 2078 | popup_get_selection ((XEvent *) 0, FRAME_X_DISPLAY_INFO (f), dialog_id); |
| 2082 | 2079 | ||
| 2080 | lw_destroy_all_widgets (dialog_id); | ||
| 2081 | |||
| 2083 | /* Find the selected item, and its pane, to return | 2082 | /* Find the selected item, and its pane, to return |
| 2084 | the proper value. */ | 2083 | the proper value. */ |
| 2085 | if (menu_item_selection != 0) | 2084 | if (menu_item_selection != 0) |