Karsten Hopp 499b27
To: vim-dev@vim.org
Karsten Hopp 499b27
Subject: patch 7.0.215 (extra)
Karsten Hopp 499b27
Fcc: outbox
Karsten Hopp 499b27
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 499b27
Mime-Version: 1.0
Karsten Hopp 499b27
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 499b27
Content-Transfer-Encoding: 8bit
Karsten Hopp 499b27
------------
Karsten Hopp 499b27
Karsten Hopp 499b27
Patch 7.0.215 (extra)
Karsten Hopp 499b27
Problem:    Mac: Scrollbar size isn't set.  Context menu has disabled useless
Karsten Hopp 499b27
	    Help entry.  Call to MoreMasterPointers() is ignored.
Karsten Hopp 499b27
Solution:   Call SetControlViewSize() in gui_mch_set_scrollbar_thumb().  Use
Karsten Hopp 499b27
	    kCMHelpItemRemoveHelp for ContextualMenuSelect().  Remove call to
Karsten Hopp 499b27
	    MoreMasterPointers(). (Nicolas Weber)
Karsten Hopp 499b27
Files:	    src/gui_mac.c
Karsten Hopp 499b27
Karsten Hopp 499b27
Karsten Hopp 499b27
*** ../vim-7.0.214/src/gui_mac.c	Tue Oct 17 12:53:31 2006
Karsten Hopp 499b27
--- src/gui_mac.c	Thu Mar  8 16:44:31 2007
Karsten Hopp 499b27
***************
Karsten Hopp 499b27
*** 2800,2808 ****
Karsten Hopp 499b27
  # endif
Karsten Hopp 499b27
  #endif
Karsten Hopp 499b27
  
Karsten Hopp 499b27
-     /* Why did I put that in? (Dany) */
Karsten Hopp 499b27
-     MoreMasterPointers (0x40 * 3); /* we love handles */
Karsten Hopp 499b27
- 
Karsten Hopp 499b27
  #if 0
Karsten Hopp 499b27
      InitCursor();
Karsten Hopp 499b27
  
Karsten Hopp 499b27
--- 2800,2805 ----
Karsten Hopp 499b27
***************
Karsten Hopp 499b27
*** 4966,4971 ****
Karsten Hopp 499b27
--- 4963,4969 ----
Karsten Hopp 499b27
      SetControl32BitMaximum (sb->id, max);
Karsten Hopp 499b27
      SetControl32BitMinimum (sb->id, 0);
Karsten Hopp 499b27
      SetControl32BitValue   (sb->id, val);
Karsten Hopp 499b27
+     SetControlViewSize     (sb->id, size);    
Karsten Hopp 499b27
  #ifdef DEBUG_MAC_SB
Karsten Hopp 499b27
      printf("thumb_sb (%x) %x, %x,%x\n",sb->id, val, size, max);
Karsten Hopp 499b27
  #endif
Karsten Hopp 499b27
***************
Karsten Hopp 499b27
*** 5727,5733 ****
Karsten Hopp 499b27
      /* TODO: Get the text selection from Vim */
Karsten Hopp 499b27
  
Karsten Hopp 499b27
      /* Call to Handle Popup */
Karsten Hopp 499b27
!     status = ContextualMenuSelect(CntxMenu, where, false, kCMHelpItemNoHelp,
Karsten Hopp 499b27
  		       HelpName, NULL, &CntxType, &CntxMenuID, &CntxMenuItem);
Karsten Hopp 499b27
  
Karsten Hopp 499b27
      if (status == noErr)
Karsten Hopp 499b27
--- 5725,5731 ----
Karsten Hopp 499b27
      /* TODO: Get the text selection from Vim */
Karsten Hopp 499b27
  
Karsten Hopp 499b27
      /* Call to Handle Popup */
Karsten Hopp 499b27
!     status = ContextualMenuSelect(CntxMenu, where, false, kCMHelpItemRemoveHelp,
Karsten Hopp 499b27
  		       HelpName, NULL, &CntxType, &CntxMenuID, &CntxMenuItem);
Karsten Hopp 499b27
  
Karsten Hopp 499b27
      if (status == noErr)
Karsten Hopp 499b27
*** ../vim-7.0.214/src/version.c	Thu Mar  8 18:16:54 2007
Karsten Hopp 499b27
--- src/version.c	Thu Mar  8 20:38:17 2007
Karsten Hopp 499b27
***************
Karsten Hopp 499b27
*** 668,669 ****
Karsten Hopp 499b27
--- 668,671 ----
Karsten Hopp 499b27
  {   /* Add new patch number below this line */
Karsten Hopp 499b27
+ /**/
Karsten Hopp 499b27
+     215,
Karsten Hopp 499b27
  /**/
Karsten Hopp 499b27
Karsten Hopp 499b27
-- 
Karsten Hopp 499b27
       When danger reared its ugly head,
Karsten Hopp 499b27
       He bravely turned his tail and fled
Karsten Hopp 499b27
       Yes, Brave Sir Robin turned about
Karsten Hopp 499b27
       And gallantly he chickened out
Karsten Hopp 499b27
       Bravely taking to his feet
Karsten Hopp 499b27
       He beat a very brave retreat
Karsten Hopp 499b27
       Bravest of the brave Sir Robin
Karsten Hopp 499b27
       Petrified of being dead
Karsten Hopp 499b27
       Soiled his pants then brave Sir Robin
Karsten Hopp 499b27
       Turned away and fled.
Karsten Hopp 499b27
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 499b27
Karsten Hopp 499b27
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 499b27
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 499b27
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 499b27
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///