Closed Bug 316638 Opened 20 years ago Closed 20 years ago

Sould not use obsoleted API(WINNLSEnableIME)

Categories

(Core :: Widget: Win32, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: masayuki, Assigned: emk)

References

Details

(Keywords: intl)

Attachments

(1 file, 1 obsolete file)

We are using obsoleted API for IME disabling by bug 276727. Masatoshi Kimura-san said, we can use ImmAssociateContext instead of WINNLSEnableIME. I confirmed that. It's good way. We should replace this API.
Status: NEW → ASSIGNED
Comment on attachment 203209 [details] [diff] [review] Patch rv1.0(created by Kimura-san) timeless: Looks good for me. Please check it too.
Attachment #203209 - Flags: review?(timeless)
Comment on attachment 203209 [details] [diff] [review] Patch rv1.0(created by Kimura-san) >RCS file: /cvsroot/mozilla/widget/src/windows/nsWindow.cpp,v >retrieving revision 3.594 >@@ -7353,37 +7351,30 @@ NS_IMETHODIMP nsWindow::GetIMEOpenState( > NS_IMETHODIMP nsWindow::SetIMEEnabled(PRBool aState) >+ if (aState && !mOldIMC) >+ return NS_OK; // already enabled >+ if (!aState && mOldIMC) >+ return NS_OK; // already disabled you could use == or ^ instead of these paired conditions: if (!aState == mOldIMC) return NS_OK;
Attachment #203209 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #203209 - Flags: review?(timeless)
Attachment #203209 - Flags: review+
(In reply to comment #3) > you could use == or ^ instead of these paired conditions: > > if (!aState == mOldIMC) > return NS_OK; > Is this right? I think: if (!aState == !!mOldIMC) return NS_OK;
IMO that is bit tricky and unreadable. Actually, timeless made a mistake :-)
Comment on attachment 203209 [details] [diff] [review] Patch rv1.0(created by Kimura-san) >+ if (aState && !mOldIMC) >+ return NS_OK; // already enabled >+ if (!aState && mOldIMC) >+ return NS_OK; // already disabled While I don't understand why enabling IME would give you an old IMC my vote for the test goes to if (!aState != !mOldIMC)
Attachment #203209 - Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
Kimura-san: Could you create new patch for check-in?
Attached patch Patch rv1.1Splinter Review
Incorporated neil's suggestion
Attachment #203209 - Attachment is obsolete: true
checked-in. thank you for your work!
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: