1
0
forked from aniani/vim

patch 8.2.4649: various formatting problems

Problem:    Various formatting problems.
Solution:   Improve the code formatting.
This commit is contained in:
Bram Moolenaar
2022-03-30 10:57:45 +01:00
parent 46eea444d9
commit b4ad3b0dea
9 changed files with 33 additions and 32 deletions

View File

@@ -944,13 +944,21 @@ gui_mch_add_menu(vimmenu_T *menu, int idx)
&& tearoff_val == (int)XmTEAR_OFF_ENABLED ? 1 : 0),
#endif
NULL);
gui_motif_menu_colors(menu->id);
gui_motif_menu_fontlist(menu->id);
XmStringFree(label);
if (menu->id == (Widget)0) // failed
return;
// The "Help" menu is a special case, and should be placed at the far
// right hand side of the menu-bar. It's recognized by its high priority.
if (parent == NULL && menu->priority >= 9999)
XtVaSetValues(menuBar,
XmNmenuHelpWidget, menu->id,
NULL);
gui_motif_menu_colors(menu->id);
gui_motif_menu_fontlist(menu->id);
// add accelerator text
gui_motif_add_actext(menu);
@@ -978,19 +986,8 @@ gui_mch_add_menu(vimmenu_T *menu, int idx)
XmNsubMenuId, menu->submenu_id,
NULL);
/*
* The "Help" menu is a special case, and should be placed at the far
* right hand side of the menu-bar. It's recognized by its high priority.
*/
if (parent == NULL && menu->priority >= 9999)
XtVaSetValues(menuBar,
XmNmenuHelpWidget, menu->id,
NULL);
/*
* When we add a top-level item to the menu bar, we can figure out how
* high the menu bar should be.
*/
// When we add a top-level item to the menu bar, we can figure out how
// high the menu bar should be.
if (parent == NULL)
gui_mch_compute_menu_height(menu->id);
}