Aric Stewart : msctf: Hook up ITfLanguageProfileNotifySink:: OnLanguageChange.

Alexandre Julliard julliard at winehq.org
Mon Aug 31 10:48:28 CDT 2009


Module: wine
Branch: master
Commit: a60f32739baffc7c3ce8d7b70ff82d4b1bb316cc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a60f32739baffc7c3ce8d7b70ff82d4b1bb316cc

Author: Aric Stewart <aric at codeweavers.com>
Date:   Mon Aug 31 09:31:27 2009 -0500

msctf: Hook up ITfLanguageProfileNotifySink::OnLanguageChange.

---

 dlls/msctf/inputprocessor.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/dlls/msctf/inputprocessor.c b/dlls/msctf/inputprocessor.c
index 2cd20cd..0935c44 100644
--- a/dlls/msctf/inputprocessor.c
+++ b/dlls/msctf/inputprocessor.c
@@ -491,8 +491,22 @@ static HRESULT WINAPI InputProcessorProfiles_GetCurrentLanguage(
 static HRESULT WINAPI InputProcessorProfiles_ChangeCurrentLanguage(
         ITfInputProcessorProfiles *iface, LANGID langid)
 {
+    struct list *cursor;
     InputProcessorProfiles *This = (InputProcessorProfiles*)iface;
+    BOOL accept;
+
     FIXME("STUB:(%p)\n",This);
+
+    LIST_FOR_EACH(cursor, &This->LanguageProfileNotifySink)
+    {
+        InputProcessorProfilesSink* sink = LIST_ENTRY(cursor,InputProcessorProfilesSink,entry);
+        accept = TRUE;
+        ITfLanguageProfileNotifySink_OnLanguageChange(sink->interfaces.pITfLanguageProfileNotifySink, langid, &accept);
+        if (!accept)
+            return  E_FAIL;
+    }
+
+    /* TODO:  On successful language change call OnLanguageChanged sink */
     return E_NOTIMPL;
 }
 




More information about the wine-cvs mailing list