home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / old / 5.4.4 < prev    next >
Encoding:
Internet Message Format  |  1999-07-28  |  3.6 KB

  1. To: Vince Negri <vn@aslnet.co.uk>
  2. In-Reply-To: <11F664DB9E16D3119CB90060084B96A205D91D@ASLMAIL>
  3. Cc: VIM Development List <vim-dev@vim.org>
  4. Subject: patch 5.4.4 (was: Vim 5.4 weeny bug with Win32 Toolbar...
  5. Fcc: outbox
  6. From: Bram Moolenaar <Bram@moolenaar.net>
  7. ------------
  8.  
  9. Vince Negri wrote:
  10.  
  11. > Problem:
  12. > Building Win32 or Win16 GUI without USE_TOOLBAR #defined worked,
  13. > but if your _gvimrc still had 'T' in guioptions a blank area the size of the
  14. > toolbar was forever located at the top of the window.
  15. > Cause:
  16. > Some bits of GUI assumed that MS Windows GUI necessarily has to have a
  17. > toolbar, when this is not the case.
  18. > Fix:
  19. > See below.
  20.  
  21. Thanks.  Here is the "official" patch version for the same:
  22.  
  23. Patch 5.4.4
  24. Problem:    Win32: When compiled without toolbar, but the 'T' flag is in
  25.         'guioptions', there would be an empty space for the toolbar.
  26. Solution:   Add two #ifdefs where checking for the 'T' flag. (Vince Negri)
  27. Files:        src/gui.c
  28.  
  29.  
  30. *** ../vim-5.4/src/gui.c    Sun Jul 25 22:02:00 1999
  31. --- src/gui.c    Thu Jul 29 10:40:21 1999
  32. ***************
  33. *** 856,862 ****
  34.       if (gui.which_scrollbars[SBAR_LEFT])
  35.       text_area_x += gui.scrollbar_width;
  36.   
  37. ! #ifdef USE_GUI_MSWIN
  38.       if (vim_strchr(p_go, GO_TOOLBAR) != NULL)
  39.       text_area_y = TOOLBAR_BUTTON_HEIGHT + TOOLBAR_BORDER_HEIGHT;
  40.       else
  41. --- 864,870 ----
  42.       if (gui.which_scrollbars[SBAR_LEFT])
  43.       text_area_x += gui.scrollbar_width;
  44.   
  45. ! #if defined(USE_GUI_MSWIN) && defined(USE_TOOLBAR)
  46.       if (vim_strchr(p_go, GO_TOOLBAR) != NULL)
  47.       text_area_y = TOOLBAR_BUTTON_HEIGHT + TOOLBAR_BORDER_HEIGHT;
  48.       else
  49. ***************
  50. *** 2537,2543 ****
  51.           y += gui.menu_height;
  52.   #endif
  53.   
  54. ! #ifdef USE_GUI_MSWIN
  55.           if (vim_strchr(p_go, GO_TOOLBAR) != NULL)
  56.           y += TOOLBAR_BUTTON_HEIGHT + TOOLBAR_BORDER_HEIGHT;
  57.   #endif
  58. --- 2545,2551 ----
  59.           y += gui.menu_height;
  60.   #endif
  61.   
  62. ! #if defined(USE_GUI_MSWIN) && defined(USE_TOOLBAR)
  63.           if (vim_strchr(p_go, GO_TOOLBAR) != NULL)
  64.           y += TOOLBAR_BUTTON_HEIGHT + TOOLBAR_BORDER_HEIGHT;
  65.   #endif
  66. *** ../vim-5.4/version.h    Thu Jul 29 10:47:45 1999
  67. --- src/version.h    Thu Jul 29 10:48:06 1999
  68. ***************
  69. *** 19,26 ****
  70.   #define VIM_VERSION_MINOR_STR        "4"
  71.   #define VIM_VERSION_BUILD         57
  72.   #define VIM_VERSION_BUILD_STR        "57"
  73. ! #define VIM_VERSION_PATCHLEVEL         3
  74. ! #define VIM_VERSION_PATCHLEVEL_STR    "3"
  75.   
  76.   /*
  77.    * VIM_VERSION_NODOT is used for the runtime directory name.
  78. --- 19,26 ----
  79.   #define VIM_VERSION_MINOR_STR        "4"
  80.   #define VIM_VERSION_BUILD         57
  81.   #define VIM_VERSION_BUILD_STR        "57"
  82. ! #define VIM_VERSION_PATCHLEVEL         4
  83. ! #define VIM_VERSION_PATCHLEVEL_STR    "4"
  84.   
  85.   /*
  86.    * VIM_VERSION_NODOT is used for the runtime directory name.
  87. ***************
  88. *** 30,35 ****
  89.    */
  90.   #define VIM_VERSION_NODOT    "vim54"
  91.   #define VIM_VERSION_SHORT    "5.4"
  92. ! #define VIM_VERSION_MEDIUM    "5.4.3"
  93. ! #define VIM_VERSION_LONG    "VIM - Vi IMproved 5.4.3 (1999 Jul 28)"
  94. ! #define VIM_VERSION_LONG_DATE    "VIM - Vi IMproved 5.4.3 (1999 Jul 28, compiled "
  95. --- 30,35 ----
  96.    */
  97.   #define VIM_VERSION_NODOT    "vim54"
  98.   #define VIM_VERSION_SHORT    "5.4"
  99. ! #define VIM_VERSION_MEDIUM    "5.4.4"
  100. ! #define VIM_VERSION_LONG    "VIM - Vi IMproved 5.4.4 (1999 Jul 29)"
  101. ! #define VIM_VERSION_LONG_DATE    "VIM - Vi IMproved 5.4.4 (1999 Jul 29, compiled "
  102.  
  103. --
  104. ARTHUR:    Will you ask your master if he wants to join my court at Camelot?!
  105. GUARD #1:  But then of course African swallows are not migratory.
  106. GUARD #2:  Oh, yeah...
  107. GUARD #1:  So they couldn't bring a coconut back anyway...
  108.                                   The Quest for the Holy Grail (Monty Python)
  109.  
  110. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  111.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  112.