Mercurial > emacs
changeset 5900:284c0d70a50a
(x_set_menu_bar_lines) [USE_X_TOOLKIT]: Dont Call XtDestroyWidget but
free_frame_menubar.
Undo previous changes.
author | Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr> |
---|---|
date | Fri, 11 Feb 1994 13:56:38 +0000 |
parents | 4e8f26a0f2b7 |
children | 0377de94724d |
files | src/xfns.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfns.c Fri Feb 11 13:50:53 1994 +0000 +++ b/src/xfns.c Fri Feb 11 13:56:38 1994 +0000 @@ -74,6 +74,7 @@ application. */ Widget Xt_app_shell; +extern void free_frame_menubar (); #endif /* USE_X_TOOLKIT */ #define min(a,b) ((a) < (b) ? (a) : (b)) @@ -1076,9 +1077,8 @@ FRAME_EXTERNAL_MENU_BAR (f) = 1; else { - if (FRAME_EXTERNAL_MENU_BAR (f) == 1 - && f->display.x->menubar_widget) - XtDestroyWidget (f->display.x->menubar_widget); + if (FRAME_EXTERNAL_MENU_BAR (f) == 1) + free_frame_menubar (f); FRAME_EXTERNAL_MENU_BAR (f) = 0; f->display.x->menubar_widget = 0; }