diff options
| author | Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr> | 1994-02-01 17:33:14 +0000 |
|---|---|---|
| committer | Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr> | 1994-02-01 17:33:14 +0000 |
| commit | e021605ff3f7e83cef81d7e7e66a41f6f7732fc4 (patch) | |
| tree | 46ffaa479bd1e1ac1b38b640cc26a5468170d181 | |
| parent | 5a8d870ba9d589f455cfb424f77cc18a8447621a (diff) | |
| download | emacs-e021605ff3f7e83cef81d7e7e66a41f6f7732fc4.tar.gz | |
(x_set_menu_bar_lines): Test also menubar_widget before calling
XtDestroyWidget.
| -rw-r--r-- | src/xfns.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c index 4b5de9329c9..4ffd39f7df4 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -1076,7 +1076,8 @@ x_set_menu_bar_lines (f, value, oldval) 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; |
