patch 8.2.4649: various formatting problems
Problem: Various formatting problems.
Solution: Improve the code formatting.
diff --git a/src/gui_motif.c b/src/gui_motif.c
index 56d3f35..97b0bf9 100644
--- a/src/gui_motif.c
+++ b/src/gui_motif.c
@@ -944,13 +944,21 @@
&& 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 @@
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);
}