diff options
author | das <das> | 2003-02-20 07:07:54 (GMT) |
---|---|---|
committer | das <das> | 2003-02-20 07:07:54 (GMT) |
commit | 1e2ffa0e1da236e9b7bea4917525d5f1a9ecb786 (patch) | |
tree | 822034338805db19436636e715dd8caab9e6978c | |
parent | e58c4121633f54dd00b872d11a8e40cc777c5ab5 (diff) | |
download | tk-1e2ffa0e1da236e9b7bea4917525d5f1a9ecb786.zip tk-1e2ffa0e1da236e9b7bea4917525d5f1a9ecb786.tar.gz tk-1e2ffa0e1da236e9b7bea4917525d5f1a9ecb786.tar.bz2 |
* macosx/tkMacOSXKeyEvent.c: fix for uninitialized var warning.
-rw-r--r-- | ChangeLog | 82 | ||||
-rw-r--r-- | macosx/tkMacOSXKeyEvent.c | 2 |
2 files changed, 44 insertions, 40 deletions
@@ -1,6 +1,10 @@ +2003-02-19 Daniel Steffen <das@users.sourceforge.net> + + * macosx/tkMacOSXKeyEvent.c: fix for uninitialized var warning. + 2003-02-19 Jim Ingham <jingham@apple.com> - * tkMacOSXMouseEvents.c (GeneratePollingEvents): In the case + * macosx/tkMacOSXMouseEvents.c (GeneratePollingEvents): In the case where there was a capture window, we were sending the events to the capture window. But the capture window (return value or TkMacOSXGetCapture) is always a toplevel. So this is wrong in @@ -15,7 +19,7 @@ are by default routed to the standard event handlers after Tk has looked at them. - * macosx/tkMacOSXEvent.h: Rename "handledByTk" into + * macosx/tkMacOSXEvent.h: Rename "handledByTk" into "stopProcessing". * macosx/tkMacOSXEvent.c: Update erroneous comments and @@ -47,43 +51,43 @@ This patch changes the key event handling to use the MacOS translation mechanisms. It also improves dead key handling. - * macosx/tkMacOSXKeyEvent.c (InitKeyData): Add. - (InitKeyEvent): Add. - (DecodeViaUnicodeResource): Rename - KeycodeToUnicodeViaUnicodeResource. - (DecodeViaKCHRResource): Rename KeycodeToUnicodeViaKCHRResource. - (GetKeyboardLayout): Use a boolean flag instead of a special - layout id. - - (KeycodeToUnicodeViaUnicodeResource): Change interface and - implementation to return a Unicode string instead of directly - filling an XEvent. - (KeycodeToUnicodeViaKCHRResource): Ditto. - (KeycodeToUnicodeViaUnicodeResource): Add handling for callers - that don't want deadkey processing (i.e. XKeycodeToKeysym). - (KeycodeToUnicodeViaKCHRResource): Ditto. - (KeycodeToUnicodeViaUnicodeResource): Clear deadKeyState if a - character was produced. - (KeycodeToUnicodeViaKCHRResource): Use CFString and current - keyboard encoding instead of Tcl Tcl_ExternalToUtf() and fixed - TkMacOSXCarbonEncoding. - (TkMacOSXKeycodeToUnicode): Add. - - (TkMacOSXProcessKeyboardEvent): Add some heuristics to improve - keyup events. - (deadKeyState): Split into deadKeyStateUp and deadKeyStateDown. - (GenerateKeyEvent): Change interface and implementation to accept - a Unicode string instead of individual characters. - (GenerateKeyEvent): Don't generate string representations for - special characters. - - * macosx/tkMacOSXEvent.h (TkMacOSXKeycodeToUnicode): Add - prototype. - - * macosx/tkMacOSXKeyboard.c (KCHRPtr): Remove. - (XKeycodeToKeysym): Use TkMacOSXKeycodeToUnicode instead of - KeyTranslate. - (XKeycodeToKeysym): Support latin-1 keysyms. + * macosx/tkMacOSXKeyEvent.c (InitKeyData): Add. + (InitKeyEvent): Add. + (DecodeViaUnicodeResource): Rename + KeycodeToUnicodeViaUnicodeResource. + (DecodeViaKCHRResource): Rename KeycodeToUnicodeViaKCHRResource. + (GetKeyboardLayout): Use a boolean flag instead of a special + layout id. + + (KeycodeToUnicodeViaUnicodeResource): Change interface and + implementation to return a Unicode string instead of directly + filling an XEvent. + (KeycodeToUnicodeViaKCHRResource): Ditto. + (KeycodeToUnicodeViaUnicodeResource): Add handling for callers + that don't want deadkey processing (i.e. XKeycodeToKeysym). + (KeycodeToUnicodeViaKCHRResource): Ditto. + (KeycodeToUnicodeViaUnicodeResource): Clear deadKeyState if a + character was produced. + (KeycodeToUnicodeViaKCHRResource): Use CFString and current + keyboard encoding instead of Tcl Tcl_ExternalToUtf() and fixed + TkMacOSXCarbonEncoding. + (TkMacOSXKeycodeToUnicode): Add. + + (TkMacOSXProcessKeyboardEvent): Add some heuristics to improve + keyup events. + (deadKeyState): Split into deadKeyStateUp and deadKeyStateDown. + (GenerateKeyEvent): Change interface and implementation to accept + a Unicode string instead of individual characters. + (GenerateKeyEvent): Don't generate string representations for + special characters. + + * macosx/tkMacOSXEvent.h (TkMacOSXKeycodeToUnicode): Add + prototype. + + * macosx/tkMacOSXKeyboard.c (KCHRPtr): Remove. + (XKeycodeToKeysym): Use TkMacOSXKeycodeToUnicode instead of + KeyTranslate. + (XKeycodeToKeysym): Support latin-1 keysyms. This patch reverts the hack to put icons in menus that Vince put in yesterday (but preserves the bug fix in that submission.) diff --git a/macosx/tkMacOSXKeyEvent.c b/macosx/tkMacOSXKeyEvent.c index eee1844..ed9535a 100644 --- a/macosx/tkMacOSXKeyEvent.c +++ b/macosx/tkMacOSXKeyEvent.c @@ -144,7 +144,7 @@ int TkMacOSXProcessKeyboardEvent( #endif int eventGenerated; UniChar uniChars[5]; /* make this larger, if needed */ - UInt32 uniCharsLen; + UInt32 uniCharsLen = 0; if (!InitKeyData(&keyEventData)) { statusPtr->err = 1; |