Closed
Bug 316638
Opened 20 years ago
Closed 20 years ago
Sould not use obsoleted API(WINNLSEnableIME)
Categories
(Core :: Widget: Win32, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: masayuki, Assigned: emk)
References
Details
(Keywords: intl)
Attachments
(1 file, 1 obsolete file)
|
16.25 KB,
patch
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Comment 1•20 years ago
|
||
Attachment #203209 -
Flags: review+
| Reporter | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
| Reporter | ||
Comment 2•20 years ago
|
||
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+
| Reporter | ||
Comment 4•20 years ago
|
||
(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;
| Assignee | ||
Comment 5•20 years ago
|
||
IMO that is bit tricky and unreadable. Actually, timeless made a mistake :-)
Comment 6•20 years ago
|
||
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+
| Reporter | ||
Comment 7•20 years ago
|
||
Kimura-san:
Could you create new patch for check-in?
| Assignee | ||
Comment 8•20 years ago
|
||
Incorporated neil's suggestion
Attachment #203209 -
Attachment is obsolete: true
| Reporter | ||
Comment 9•20 years ago
|
||
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.
Description
•