Mercurial > vim
comparison src/gui.c @ 21745:35921b7fc07a v8.2.1422
patch 8.2.1422: the Mac GUI implementation is outdated
Commit: https://github.com/vim/vim/commit/097148e849136b49052b1b5123c714fb1d74db9b
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 11 21:58:20 2020 +0200
patch 8.2.1422: the Mac GUI implementation is outdated
Problem: The Mac GUI implementation is outdated and probably doesn't even
work.
Solution: Remove the Mac GUI code. The MacVim project provides the
supported Vim GUI version.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 11 Aug 2020 22:00:04 +0200 |
parents | e9954158a9cf |
children | e82579016863 |
comparison
equal
deleted
inserted
replaced
21744:805e8d18b78b | 21745:35921b7fc07a |
---|---|
54 /* | 54 /* |
55 * The Athena scrollbars can move the thumb to after the end of the scrollbar, | 55 * The Athena scrollbars can move the thumb to after the end of the scrollbar, |
56 * this makes the thumb indicate the part of the text that is shown. Motif | 56 * this makes the thumb indicate the part of the text that is shown. Motif |
57 * can't do this. | 57 * can't do this. |
58 */ | 58 */ |
59 #if defined(FEAT_GUI_ATHENA) || defined(FEAT_GUI_MAC) | 59 #if defined(FEAT_GUI_ATHENA) |
60 # define SCROLL_PAST_END | 60 # define SCROLL_PAST_END |
61 #endif | 61 #endif |
62 | 62 |
63 /* | 63 /* |
64 * gui_start -- Called when user wants to start the GUI. | 64 * gui_start -- Called when user wants to start the GUI. |
844 gui.in_use = FALSE; | 844 gui.in_use = FALSE; |
845 gui_mch_exit(rc); | 845 gui_mch_exit(rc); |
846 } | 846 } |
847 | 847 |
848 #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_X11) || defined(FEAT_GUI_MSWIN) \ | 848 #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_X11) || defined(FEAT_GUI_MSWIN) \ |
849 || defined(FEAT_GUI_PHOTON) || defined(FEAT_GUI_MAC) || defined(PROTO) | 849 || defined(FEAT_GUI_PHOTON) || defined(PROTO) |
850 # define NEED_GUI_UPDATE_SCREEN 1 | 850 # define NEED_GUI_UPDATE_SCREEN 1 |
851 /* | 851 /* |
852 * Called when the GUI shell is closed by the user. If there are no changed | 852 * Called when the GUI shell is closed by the user. If there are no changed |
853 * files Vim exits, otherwise there will be a dialog to ask the user what to | 853 * files Vim exits, otherwise there will be a dialog to ask the user what to |
854 * do. | 854 * do. |
1375 if (vim_strchr(p_go, GO_TOOLBAR) != NULL) | 1375 if (vim_strchr(p_go, GO_TOOLBAR) != NULL) |
1376 text_area_y = TOOLBAR_BUTTON_HEIGHT + TOOLBAR_BORDER_HEIGHT; | 1376 text_area_y = TOOLBAR_BUTTON_HEIGHT + TOOLBAR_BORDER_HEIGHT; |
1377 #endif | 1377 #endif |
1378 | 1378 |
1379 # if defined(FEAT_GUI_TABLINE) && (defined(FEAT_GUI_MSWIN) \ | 1379 # if defined(FEAT_GUI_TABLINE) && (defined(FEAT_GUI_MSWIN) \ |
1380 || defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_MAC)) | 1380 || defined(FEAT_GUI_MOTIF)) |
1381 if (gui_has_tabline()) | 1381 if (gui_has_tabline()) |
1382 text_area_y += gui.tabline_height; | 1382 text_area_y += gui.tabline_height; |
1383 #endif | 1383 #endif |
1384 | 1384 |
1385 #if defined(FEAT_TOOLBAR) && (defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA) \ | 1385 #if defined(FEAT_TOOLBAR) && (defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA) \ |