Patch 7.4.1901
Problem:    Win32: the "Disabled" menu items would appear enabled.
Solution:   Use submenu_id if there is a parent. (Shane Harper, closes #834)
Files:      src/gui_w32.c


*** ../vim-7.4.1900/src/gui_w32.c       2016-06-04 16:24:28.914189529 +0200
--- src/gui_w32.c       2016-06-04 22:35:42.977883131 +0200
***************
*** 7026,7035 ****
      }
      else
  #endif
!     if (grey)
!       EnableMenuItem(s_menuBar, menu->id, MF_BYCOMMAND | MF_GRAYED);
!     else
!       EnableMenuItem(s_menuBar, menu->id, MF_BYCOMMAND | MF_ENABLED);
  
  #ifdef FEAT_TEAROFF
      if ((menu->parent != NULL) && (IsWindow(menu->parent->tearoff_handle)))
--- 7026,7033 ----
      }
      else
  #endif
!     (void)EnableMenuItem(menu->parent ? menu->parent->submenu_id : s_menuBar,
!                   menu->id, MF_BYCOMMAND | (grey ? MF_GRAYED : MF_ENABLED));
  
  #ifdef FEAT_TEAROFF
      if ((menu->parent != NULL) && (IsWindow(menu->parent->tearoff_handle)))
*** ../vim-7.4.1900/src/version.c       2016-06-04 22:31:23.969886694 +0200
--- src/version.c       2016-06-04 22:35:50.345883030 +0200
***************
*** 755,756 ****
--- 755,758 ----
  {   /* Add new patch number below this line */
+ /**/
+     1901,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
49. You never have to deal with busy signals when calling your ISP...because
    you never log off.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui