comparison src/gui.c @ 30075:be5b8d4616b2 v9.0.0375

patch 9.0.0375: the footer feature is unused Commit: https://github.com/vim/vim/commit/c8ac3a072f18d4b250e55e91f610fe517e218777 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 4 12:29:28 2022 +0100 patch 9.0.0375: the footer feature is unused Problem: The footer feature is unused. Solution: Remove FEAT_FOOTER and code.
author Bram Moolenaar <Bram@vim.org>
date Sun, 04 Sep 2022 13:30:03 +0200
parents 89e1d67814a9
children eb534258bdaf
comparison
equal deleted inserted replaced
30074:fe5f53afe024 30075:be5b8d4616b2
442 gui.menu_width = 0; 442 gui.menu_width = 0;
443 # endif 443 # endif
444 #endif 444 #endif
445 #if defined(FEAT_TOOLBAR) && (defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_HAIKU)) 445 #if defined(FEAT_TOOLBAR) && (defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_HAIKU))
446 gui.toolbar_height = 0; 446 gui.toolbar_height = 0;
447 #endif
448 #if defined(FEAT_FOOTER) && defined(FEAT_GUI_MOTIF)
449 gui.footer_height = 0;
450 #endif 447 #endif
451 #ifdef FEAT_BEVAL_TIP 448 #ifdef FEAT_BEVAL_TIP
452 gui.tooltip_fontset = NOFONTSET; 449 gui.tooltip_fontset = NOFONTSET;
453 #endif 450 #endif
454 451
1527 # endif 1524 # endif
1528 # if defined(FEAT_GUI_TABLINE) && (defined(FEAT_GUI_MSWIN) \ 1525 # if defined(FEAT_GUI_TABLINE) && (defined(FEAT_GUI_MSWIN) \
1529 || defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_HAIKU)) 1526 || defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_HAIKU))
1530 if (gui_has_tabline()) 1527 if (gui_has_tabline())
1531 base_height += gui.tabline_height; 1528 base_height += gui.tabline_height;
1532 # endif
1533 # ifdef FEAT_FOOTER
1534 if (vim_strchr(p_go, GO_FOOTER) != NULL)
1535 base_height += gui.footer_height;
1536 # endif 1529 # endif
1537 # if defined(FEAT_GUI_MOTIF) && defined(FEAT_MENU) 1530 # if defined(FEAT_GUI_MOTIF) && defined(FEAT_MENU)
1538 base_height += gui_mch_text_area_extra_height(); 1531 base_height += gui_mch_text_area_extra_height();
1539 # endif 1532 # endif
1540 #endif 1533 #endif
3477 int using_toolbar = FALSE; 3470 int using_toolbar = FALSE;
3478 #endif 3471 #endif
3479 #ifdef FEAT_GUI_TABLINE 3472 #ifdef FEAT_GUI_TABLINE
3480 int using_tabline; 3473 int using_tabline;
3481 #endif 3474 #endif
3482 #ifdef FEAT_FOOTER
3483 static int prev_footer = -1;
3484 int using_footer = FALSE;
3485 #endif
3486 #if defined(FEAT_MENU) 3475 #if defined(FEAT_MENU)
3487 static int prev_tearoff = -1; 3476 static int prev_tearoff = -1;
3488 int using_tearoff = FALSE; 3477 int using_tearoff = FALSE;
3489 #endif 3478 #endif
3490 3479
3553 // make menu's have grey items, ignored here 3542 // make menu's have grey items, ignored here
3554 break; 3543 break;
3555 #ifdef FEAT_TOOLBAR 3544 #ifdef FEAT_TOOLBAR
3556 case GO_TOOLBAR: 3545 case GO_TOOLBAR:
3557 using_toolbar = TRUE; 3546 using_toolbar = TRUE;
3558 break;
3559 #endif
3560 #ifdef FEAT_FOOTER
3561 case GO_FOOTER:
3562 using_footer = TRUE;
3563 break; 3547 break;
3564 #endif 3548 #endif
3565 case GO_TEAROFF: 3549 case GO_TEAROFF:
3566 #if defined(FEAT_MENU) 3550 #if defined(FEAT_MENU)
3567 using_tearoff = TRUE; 3551 using_tearoff = TRUE;
3659 need_set_size |= RESIZE_VERT; 3643 need_set_size |= RESIZE_VERT;
3660 if (using_toolbar) 3644 if (using_toolbar)
3661 fix_size = TRUE; 3645 fix_size = TRUE;
3662 } 3646 }
3663 #endif 3647 #endif
3664 #ifdef FEAT_FOOTER
3665 if (using_footer != prev_footer)
3666 {
3667 gui_mch_enable_footer(using_footer);
3668 prev_footer = using_footer;
3669 need_set_size |= RESIZE_VERT;
3670 if (using_footer)
3671 fix_size = TRUE;
3672 }
3673 #endif
3674 #if defined(FEAT_MENU) && !(defined(MSWIN) && !defined(FEAT_TEAROFF)) 3648 #if defined(FEAT_MENU) && !(defined(MSWIN) && !defined(FEAT_TEAROFF))
3675 if (using_tearoff != prev_tearoff) 3649 if (using_tearoff != prev_tearoff)
3676 { 3650 {
3677 gui_mch_toggle_tearoffs(using_tearoff); 3651 gui_mch_toggle_tearoffs(using_tearoff);
3678 prev_tearoff = using_tearoff; 3652 prev_tearoff = using_tearoff;