summaryrefslogtreecommitdiffstats
path: root/src/gui_motif.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-03-30 10:57:45 +0100
committerBram Moolenaar <Bram@vim.org>2022-03-30 10:57:45 +0100
commitb4ad3b0deac12674a7773311890b48fd39c6807c (patch)
treed5060ac163343dcbf75d07f32083405afb876dd9 /src/gui_motif.c
parent46eea444d992c2ae985cabb775a5d283f8e16df3 (diff)
patch 8.2.4649: various formatting problemsv8.2.4649
Problem: Various formatting problems. Solution: Improve the code formatting.
Diffstat (limited to 'src/gui_motif.c')
-rw-r--r--src/gui_motif.c27
1 files changed, 12 insertions, 15 deletions
diff --git a/src/gui_motif.c b/src/gui_motif.c
index 56d3f35723..97b0bf98e6 100644
--- a/src/gui_motif.c
+++ b/src/gui_motif.c
@@ -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);
}