changeset 5897:5a68abc8f1f9

(free_frame_menubar) [USE_X_TOOLKIT]. New function to destroy the X Widget instance of the menubar.
author Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
date Fri, 11 Feb 1994 13:19:19 +0000
parents b20145eafe0c
children 105c99071e9b
files src/xmenu.c
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Fri Feb 11 08:52:53 1994 +0000
+++ b/src/xmenu.c	Fri Feb 11 13:19:19 1994 +0000
@@ -838,6 +838,24 @@
 
   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 {