Mercurial > emacs
changeset 5721:60dec959cbc2
(x_set_menu_bar_lines): Test also menubar_widget before calling
XtDestroyWidget.
author | Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr> |
---|---|
date | Tue, 01 Feb 1994 17:33:14 +0000 |
parents | fe1a71db966f |
children | b087b24b26ea |
files | src/xfns.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfns.c Tue Feb 01 17:25:41 1994 +0000 +++ b/src/xfns.c Tue Feb 01 17:33:14 1994 +0000 @@ -1076,7 +1076,8 @@ FRAME_EXTERNAL_MENU_BAR (f) = 1; else { - if (FRAME_EXTERNAL_MENU_BAR (f) == 1) + if (FRAME_EXTERNAL_MENU_BAR (f) == 1 + && f->display.x->menubar_widget) XtDestroyWidget (f->display.x->menubar_widget); FRAME_EXTERNAL_MENU_BAR (f) = 0; f->display.x->menubar_widget = 0;