To: vim_dev@googlegroups.com Subject: Patch 7.4.1901 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- 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 ///