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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user