comparison src/xmenu.c @ 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 f394f25efb3c
comparison
equal deleted inserted replaced
5896:b20145eafe0c 5897:5a68abc8f1f9
835 free_menubar_widget_value_tree (first_wv); 835 free_menubar_widget_value_tree (first_wv);
836 836
837 update_one_frame_psheets (f); 837 update_one_frame_psheets (f);
838 838
839 UNBLOCK_INPUT; 839 UNBLOCK_INPUT;
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 }
840 } 858 }
841 #endif /* USE_X_TOOLKIT */ 859 #endif /* USE_X_TOOLKIT */
842 860
843 struct indices { 861 struct indices {
844 int pane; 862 int pane;