summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXCarbonEvents.c
diff options
context:
space:
mode:
authordas <das>2006-04-11 10:22:34 (GMT)
committerdas <das>2006-04-11 10:22:34 (GMT)
commit0b2e5414581ab039ffccbce58cff46fa8946291d (patch)
tree8145ed7223f95c40cc285fc9db7a352f43a84dda /macosx/tkMacOSXCarbonEvents.c
parent93e85c8f5894a94877c2a496e6bf0dbc80d721db (diff)
downloadtk-0b2e5414581ab039ffccbce58cff46fa8946291d.zip
tk-0b2e5414581ab039ffccbce58cff46fa8946291d.tar.gz
tk-0b2e5414581ab039ffccbce58cff46fa8946291d.tar.bz2
* macosx/tkMacOSXCarbonEvents.c: handle kEventCommandUpdateStatus
* macosx/tkMacOSXEvent.c: carbon event to dynamically enable the 'Preferences' app menu item when proc [::tk::mac::ShowPreferences] is defined. [Bug 700316]
Diffstat (limited to 'macosx/tkMacOSXCarbonEvents.c')
-rw-r--r--macosx/tkMacOSXCarbonEvents.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/tkMacOSXCarbonEvents.c b/macosx/tkMacOSXCarbonEvents.c
index 28bd3ef..fc81844 100644
--- a/macosx/tkMacOSXCarbonEvents.c
+++ b/macosx/tkMacOSXCarbonEvents.c
@@ -60,7 +60,7 @@
* software in accordance with the terms specified in this
* license.
*
- * RCS: @(#) $Id: tkMacOSXCarbonEvents.c,v 1.10 2006/03/24 14:58:01 das Exp $
+ * RCS: @(#) $Id: tkMacOSXCarbonEvents.c,v 1.11 2006/04/11 10:22:34 das Exp $
*/
#include "tkMacOSXInt.h"
@@ -192,6 +192,7 @@ TkMacOSXInitCarbonEvents (
{kEventClassMenu, kEventMenuBeginTracking},
{kEventClassMenu, kEventMenuEndTracking},
{kEventClassCommand, kEventCommandProcess},
+ {kEventClassCommand, kEventCommandUpdateStatus},
{kEventClassMouse, kEventMouseWheelMoved},
{kEventClassWindow, kEventWindowExpanded},
{kEventClassApplication, kEventAppHidden},
@@ -246,6 +247,7 @@ TkMacOSXInitCarbonEvents (
TraceEventByName("kEventMenuBeginTracking");
TraceEventByName("kEventMenuEndTracking");
TraceEventByName("kEventCommandProcess");
+ TraceEventByName("kEventCommandUpdateStatus");
TraceEventByName("kEventWindowExpanded");
TraceEventByName("kEventAppHidden");
TraceEventByName("kEventAppShown");