]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_set_menu_bar_lines) [USE_X_TOOLKIT]: Dont Call XtDestroyWidget but
authorFred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
Fri, 11 Feb 1994 13:56:38 +0000 (13:56 +0000)
committerFred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
Fri, 11 Feb 1994 13:56:38 +0000 (13:56 +0000)
free_frame_menubar.
Undo previous changes.

src/xfns.c

index 547876736921825122ad4b823b705f3aa4a7db6c..940826f3136623e90488e2e0dcf39f36a459077f 100644 (file)
@@ -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;
     }