diff options
| author | Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr> | 1994-02-11 13:19:19 +0000 |
|---|---|---|
| committer | Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr> | 1994-02-11 13:19:19 +0000 |
| commit | 85f487d15cfad983171db939ce68b179a9b166d9 (patch) | |
| tree | dd9b281558d4297061509eabec9989f4b440e37f | |
| parent | 63c414df27766696d9d03723023a8afc1885a8f8 (diff) | |
| download | emacs-85f487d15cfad983171db939ce68b179a9b166d9.tar.gz | |
(free_frame_menubar) [USE_X_TOOLKIT]. New function to destroy the X Widget
instance of the menubar.
| -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) UNBLOCK_INPUT; } + +void +free_frame_menubar (f) + FRAME_PTR f; +{ + Widget menubar_widget; + int id; + + menubar_widget = f->display.x->menubar_widget; + id = (int) f; + + if (menubar_widget) + { + BLOCK_INPUT; + lw_destroy_all_widgets (id); + UNBLOCK_INPUT; + } +} #endif /* USE_X_TOOLKIT */ struct indices { |
