diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xmenu.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index a2ba24cd86d..8e1e8dfb63b 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -838,6 +838,24 @@ set_frame_menubar (f) | |||
| 838 | 838 | ||
| 839 | UNBLOCK_INPUT; | 839 | UNBLOCK_INPUT; |
| 840 | } | 840 | } |
| 841 | |||
| 842 | void | ||
| 843 | free_frame_menubar (f) | ||
| 844 | FRAME_PTR f; | ||
| 845 | { | ||
| 846 | Widget menubar_widget; | ||
| 847 | int id; | ||
| 848 | |||
| 849 | menubar_widget = f->display.x->menubar_widget; | ||
| 850 | id = (int) f; | ||
| 851 | |||
| 852 | if (menubar_widget) | ||
| 853 | { | ||
| 854 | BLOCK_INPUT; | ||
| 855 | lw_destroy_all_widgets (id); | ||
| 856 | UNBLOCK_INPUT; | ||
| 857 | } | ||
| 858 | } | ||
| 841 | #endif /* USE_X_TOOLKIT */ | 859 | #endif /* USE_X_TOOLKIT */ |
| 842 | 860 | ||
| 843 | struct indices { | 861 | struct indices { |