diff options
author | Fred Pierresteguy <[email protected]> | 1994-02-11 13:56:38 +0000 |
---|---|---|
committer | Fred Pierresteguy <[email protected]> | 1994-02-11 13:56:38 +0000 |
commit | 6bc2039852dbd2d5b49ecc2638a13ea7c201394b (patch) | |
tree | 550d877f8c3980c253259dd29e06ce9b4d9b0338 /src/xfns.c | |
parent | 363f7e15eeafcbae48b194ccd9dc92deedf93568 (diff) |
(x_set_menu_bar_lines) [USE_X_TOOLKIT]: Dont Call XtDestroyWidget but
free_frame_menubar.
Undo previous changes.
Diffstat (limited to 'src/xfns.c')
-rw-r--r-- | src/xfns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xfns.c b/src/xfns.c index 5478767369..940826f313 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -74,6 +74,7 @@ XtAppContext Xt_app_con; 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 @@ x_set_menu_bar_lines (f, value, oldval) 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; } |