Mercurial > vim
comparison src/gui_motif.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 | f2972ff144ab |
comparison
equal
deleted
inserted
replaced
15033:f8b0f1e42f2c | 15034:6e4e0d43b20b |
---|---|
1112 */ | 1112 */ |
1113 if (id != (Widget)0) | 1113 if (id != (Widget)0) |
1114 XtManageChild(id); | 1114 XtManageChild(id); |
1115 | 1115 |
1116 /* | 1116 /* |
1117 * Now find the menu item that is the furthest down, and get it's position. | 1117 * Now find the menu item that is the furthest down, and get its position. |
1118 */ | 1118 */ |
1119 maxy = 0; | 1119 maxy = 0; |
1120 for (mp = root_menu; mp != NULL; mp = mp->next) | 1120 for (mp = root_menu; mp != NULL; mp = mp->next) |
1121 { | 1121 { |
1122 if (mp->id != (Widget)0 && menu_is_menubar(mp->name)) | 1122 if (mp->id != (Widget)0 && menu_is_menubar(mp->name)) |
1548 | 1548 |
1549 n = add_pixmap_args(mp, args, n); | 1549 n = add_pixmap_args(mp, args, n); |
1550 XtSetValues(mp->id, args, n); | 1550 XtSetValues(mp->id, args, n); |
1551 } | 1551 } |
1552 # ifdef FEAT_BEVAL_GUI | 1552 # ifdef FEAT_BEVAL_GUI |
1553 /* If we have a tooltip, then we need to change it's font */ | 1553 /* If we have a tooltip, then we need to change its font */ |
1554 if (mp->tip != NULL) | 1554 if (mp->tip != NULL) |
1555 { | 1555 { |
1556 Arg args[2]; | 1556 Arg args[2]; |
1557 | 1557 |
1558 args[0].name = XmNbackground; | 1558 args[0].name = XmNbackground; |
1566 } | 1566 } |
1567 else | 1567 else |
1568 { | 1568 { |
1569 gui_motif_menu_fontlist(mp->id); | 1569 gui_motif_menu_fontlist(mp->id); |
1570 #ifdef FEAT_BEVAL_GUI | 1570 #ifdef FEAT_BEVAL_GUI |
1571 /* If we have a tooltip, then we need to change it's font */ | 1571 /* If we have a tooltip, then we need to change its font */ |
1572 if (mp->tip != NULL) | 1572 if (mp->tip != NULL) |
1573 { | 1573 { |
1574 Arg args[1]; | 1574 Arg args[1]; |
1575 | 1575 |
1576 args[0].name = XmNfontList; | 1576 args[0].name = XmNfontList; |
2087 { | 2087 { |
2088 if (XtIsManaged(id)) | 2088 if (XtIsManaged(id)) |
2089 { | 2089 { |
2090 XtUnmanageChild(id); | 2090 XtUnmanageChild(id); |
2091 XtVaSetValues(id, XmNfontList, fl, NULL); | 2091 XtVaSetValues(id, XmNfontList, fl, NULL); |
2092 /* We should force the widget to recalculate it's | 2092 /* We should force the widget to recalculate its |
2093 * geometry now. */ | 2093 * geometry now. */ |
2094 XtManageChild(id); | 2094 XtManageChild(id); |
2095 } | 2095 } |
2096 else | 2096 else |
2097 XtVaSetValues(id, XmNfontList, fl, NULL); | 2097 XtVaSetValues(id, XmNfontList, fl, NULL); |
2106 { | 2106 { |
2107 if (XtIsManaged(id)) | 2107 if (XtIsManaged(id)) |
2108 { | 2108 { |
2109 XtUnmanageChild(id); | 2109 XtUnmanageChild(id); |
2110 XtVaSetValues(id, XmNfontList, fl, NULL); | 2110 XtVaSetValues(id, XmNfontList, fl, NULL); |
2111 /* We should force the widget to recalculate it's | 2111 /* We should force the widget to recalculate its |
2112 * geometry now. */ | 2112 * geometry now. */ |
2113 XtManageChild(id); | 2113 XtManageChild(id); |
2114 } | 2114 } |
2115 else | 2115 else |
2116 XtVaSetValues(id, XmNfontList, fl, NULL); | 2116 XtVaSetValues(id, XmNfontList, fl, NULL); |
3405 { | 3405 { |
3406 if (XtIsManaged(id)) | 3406 if (XtIsManaged(id)) |
3407 { | 3407 { |
3408 XtUnmanageChild(id); | 3408 XtUnmanageChild(id); |
3409 XtVaSetValues(id, XmNfontList, fl, NULL); | 3409 XtVaSetValues(id, XmNfontList, fl, NULL); |
3410 /* We should force the widget to recalculate it's | 3410 /* We should force the widget to recalculate its |
3411 * geometry now. */ | 3411 * geometry now. */ |
3412 XtManageChild(id); | 3412 XtManageChild(id); |
3413 } | 3413 } |
3414 else | 3414 else |
3415 XtVaSetValues(id, XmNfontList, fl, NULL); | 3415 XtVaSetValues(id, XmNfontList, fl, NULL); |
3426 { | 3426 { |
3427 if (XtIsManaged(id)) | 3427 if (XtIsManaged(id)) |
3428 { | 3428 { |
3429 XtUnmanageChild(id); | 3429 XtUnmanageChild(id); |
3430 XtVaSetValues(id, XmNfontList, fl, NULL); | 3430 XtVaSetValues(id, XmNfontList, fl, NULL); |
3431 /* We should force the widget to recalculate it's | 3431 /* We should force the widget to recalculate its |
3432 * geometry now. */ | 3432 * geometry now. */ |
3433 XtManageChild(id); | 3433 XtManageChild(id); |
3434 } | 3434 } |
3435 else | 3435 else |
3436 XtVaSetValues(id, XmNfontList, fl, NULL); | 3436 XtVaSetValues(id, XmNfontList, fl, NULL); |