diff options
Diffstat (limited to 'src/gui_motif.c')
-rw-r--r-- | src/gui_motif.c | 27 |
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); } |