Mercurial > emacs
comparison src/xfns.c @ 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 | 5c597b8fbabe |
children | 4e8f26a0f2b7 |
comparison
equal
deleted
inserted
replaced
5720:fe1a71db966f | 5721:60dec959cbc2 |
---|---|
1074 FRAME_MENU_BAR_LINES (f) = 0; | 1074 FRAME_MENU_BAR_LINES (f) = 0; |
1075 if (nlines) | 1075 if (nlines) |
1076 FRAME_EXTERNAL_MENU_BAR (f) = 1; | 1076 FRAME_EXTERNAL_MENU_BAR (f) = 1; |
1077 else | 1077 else |
1078 { | 1078 { |
1079 if (FRAME_EXTERNAL_MENU_BAR (f) == 1) | 1079 if (FRAME_EXTERNAL_MENU_BAR (f) == 1 |
1080 && f->display.x->menubar_widget) | |
1080 XtDestroyWidget (f->display.x->menubar_widget); | 1081 XtDestroyWidget (f->display.x->menubar_widget); |
1081 FRAME_EXTERNAL_MENU_BAR (f) = 0; | 1082 FRAME_EXTERNAL_MENU_BAR (f) = 0; |
1082 f->display.x->menubar_widget = 0; | 1083 f->display.x->menubar_widget = 0; |
1083 } | 1084 } |
1084 #else /* not USE_X_TOOLKIT */ | 1085 #else /* not USE_X_TOOLKIT */ |