comparison src/gui_athena.c @ 15034:6e4e0d43b20b v8.1.0528

patch 8.1.0528: various typos in comments commit https://github.com/vim/vim/commit/c4568ab37edc01e01f258d64bceddcd01633a268 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Nov 16 16:21:05 2018 +0100 patch 8.1.0528: various typos in comments Problem: Various typos in comments. Solution: Fix the typos.
author Bram Moolenaar <Bram@vim.org>
date Fri, 16 Nov 2018 16:30:07 +0100
parents 27b9a84395b5
children 79e10adc821d
comparison
equal deleted inserted replaced
15033:f8b0f1e42f2c 15034:6e4e0d43b20b
898 { 898 {
899 if (XtIsManaged(id)) 899 if (XtIsManaged(id))
900 { 900 {
901 XtUnmanageChild(id); 901 XtUnmanageChild(id);
902 XtVaSetValues(id, XtNfontSet, gui.menu_fontset, NULL); 902 XtVaSetValues(id, XtNfontSet, gui.menu_fontset, NULL);
903 /* We should force the widget to recalculate it's 903 /* We should force the widget to recalculate its
904 * geometry now. */ 904 * geometry now. */
905 XtManageChild(id); 905 XtManageChild(id);
906 } 906 }
907 else 907 else
908 XtVaSetValues(id, XtNfontSet, gui.menu_fontset, NULL); 908 XtVaSetValues(id, XtNfontSet, gui.menu_fontset, NULL);
927 # endif 927 # endif
928 XtVaSetValues(id, XtNfont, gui.menu_font, NULL); 928 XtVaSetValues(id, XtNfont, gui.menu_font, NULL);
929 if (has_submenu(id)) 929 if (has_submenu(id))
930 XtVaSetValues(id, XtNrightBitmap, pullerBitmap, NULL); 930 XtVaSetValues(id, XtNrightBitmap, pullerBitmap, NULL);
931 931
932 /* Force the widget to recalculate it's geometry now. */ 932 /* Force the widget to recalculate its geometry now. */
933 if (managed) 933 if (managed)
934 XtManageChild(id); 934 XtManageChild(id);
935 } 935 }
936 #endif 936 #endif
937 } 937 }
987 gui.menu_height = max_height + 2 * (space + border); 987 gui.menu_height = max_height + 2 * (space + border);
988 } 988 }
989 } 989 }
990 } 990 }
991 /* Now, to simulate the window being resized. Only, this 991 /* Now, to simulate the window being resized. Only, this
992 * will resize the window to it's current state. 992 * will resize the window to its current state.
993 * 993 *
994 * There has to be a better way, but I do not see one at this time. 994 * There has to be a better way, but I do not see one at this time.
995 * (David Harrison) 995 * (David Harrison)
996 */ 996 */
997 { 997 {
1069 if (mp->image != (Pixmap)0) 1069 if (mp->image != (Pixmap)0)
1070 XtVaSetValues(mp->id, XtNbitmap, mp->image, NULL); 1070 XtVaSetValues(mp->id, XtNbitmap, mp->image, NULL);
1071 } 1071 }
1072 1072
1073 # ifdef FEAT_BEVAL_GUI 1073 # ifdef FEAT_BEVAL_GUI
1074 /* If we have a tooltip, then we need to change it's colors */ 1074 /* If we have a tooltip, then we need to change its colors */
1075 if (mp->tip != NULL) 1075 if (mp->tip != NULL)
1076 { 1076 {
1077 Arg args[2]; 1077 Arg args[2];
1078 1078
1079 args[0].name = XtNbackground; 1079 args[0].name = XtNbackground;
1087 } 1087 }
1088 else 1088 else
1089 { 1089 {
1090 gui_athena_menu_font(mp->id); 1090 gui_athena_menu_font(mp->id);
1091 #ifdef FEAT_BEVAL_GUI 1091 #ifdef FEAT_BEVAL_GUI
1092 /* If we have a tooltip, then we need to change it's font */ 1092 /* If we have a tooltip, then we need to change its font */
1093 /* Assume XtNinternational == True (in createBalloonEvalWindow) 1093 /* Assume XtNinternational == True (in createBalloonEvalWindow)
1094 */ 1094 */
1095 if (mp->tip != NULL) 1095 if (mp->tip != NULL)
1096 { 1096 {
1097 Arg args[1]; 1097 Arg args[1];
1550 #endif 1550 #endif
1551 /* 1551 /*
1552 * This is a hack to stop the Athena simpleMenuWidget from getting a 1552 * This is a hack to stop the Athena simpleMenuWidget from getting a
1553 * BadValue error when a menu's last child is destroyed. We check to 1553 * BadValue error when a menu's last child is destroyed. We check to
1554 * see if this is the last child and if so, don't delete it. The parent 1554 * see if this is the last child and if so, don't delete it. The parent
1555 * will be deleted soon anyway, and it will delete it's children like 1555 * will be deleted soon anyway, and it will delete its children like
1556 * all good widgets do. 1556 * all good widgets do.
1557 */ 1557 */
1558 /* NOTE: The cause of the BadValue X Protocol Error is because when the 1558 /* NOTE: The cause of the BadValue X Protocol Error is because when the
1559 * last child is destroyed, it is first unmanaged, thus causing a 1559 * last child is destroyed, it is first unmanaged, thus causing a
1560 * geometry resize request from the parent Shell widget. 1560 * geometry resize request from the parent Shell widget.