aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFred Pierresteguy1994-02-11 13:19:19 +0000
committerFred Pierresteguy1994-02-11 13:19:19 +0000
commit85f487d15cfad983171db939ce68b179a9b166d9 (patch)
treedd9b281558d4297061509eabec9989f4b440e37f /src
parent63c414df27766696d9d03723023a8afc1885a8f8 (diff)
downloademacs-85f487d15cfad983171db939ce68b179a9b166d9.tar.gz
emacs-85f487d15cfad983171db939ce68b179a9b166d9.zip
(free_frame_menubar) [USE_X_TOOLKIT]. New function to destroy the X Widget
instance of the menubar.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c18
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
842void
843free_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
843struct indices { 861struct indices {