summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--win/tkWinMenu.c9
-rw-r--r--win/tkWinWm.c3
2 files changed, 3 insertions, 9 deletions
diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c
index d7f5d48..9f922ca 100644
--- a/win/tkWinMenu.c
+++ b/win/tkWinMenu.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinMenu.c,v 1.40 2005/01/09 06:59:20 chengyemao Exp $
+ * RCS: @(#) $Id: tkWinMenu.c,v 1.41 2005/01/13 01:48:03 chengyemao Exp $
*/
#define OEMRESOURCE
@@ -932,7 +932,7 @@ TkWinEmbeddedMenuProc(hwnd, message, wParam, lParam)
WPARAM wParam;
LPARAM lParam;
{
- static nPopupMenus = 0, nIdles = 0;
+ static nIdles = 0;
LRESULT lResult = 1;
ThreadSpecificData *tsdPtr = (ThreadSpecificData *)
Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData));
@@ -947,13 +947,8 @@ TkWinEmbeddedMenuProc(hwnd, message, wParam, lParam)
case WM_INITMENUPOPUP:
nIdles = 0;
- nPopupMenus++;
break;
- case WM_UNINITMENUPOPUP:
- nPopupMenus--;
- break;
-
case WM_INITMENU:
case WM_SYSCOMMAND:
case WM_COMMAND:
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index 4a2738b..77a521b 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinWm.c,v 1.92 2005/01/12 02:58:29 chengyemao Exp $
+ * RCS: @(#) $Id: tkWinWm.c,v 1.93 2005/01/13 01:48:03 chengyemao Exp $
*/
#include "tkWinInt.h"
@@ -7502,7 +7502,6 @@ WmProc(hwnd, message, wParam, lParam)
case WM_MENUSELECT:
case WM_ENTERIDLE:
case WM_INITMENUPOPUP:
- case WM_UNINITMENUPOPUP:
{
HWND hMenuHWnd = Tk_GetEmbeddedMenuHWND((Tk_Window)winPtr);
if(hMenuHWnd) {