msctf: Hook up ITfLanguageProfileNotifySink::OnLanguageChange.

This commit is contained in:
Aric Stewart 2009-08-31 09:31:27 -05:00 committed by Alexandre Julliard
parent 30a9264109
commit a60f32739b
1 changed files with 14 additions and 0 deletions

View File

@ -491,8 +491,22 @@ static HRESULT WINAPI InputProcessorProfiles_GetCurrentLanguage(
static HRESULT WINAPI InputProcessorProfiles_ChangeCurrentLanguage( static HRESULT WINAPI InputProcessorProfiles_ChangeCurrentLanguage(
ITfInputProcessorProfiles *iface, LANGID langid) ITfInputProcessorProfiles *iface, LANGID langid)
{ {
struct list *cursor;
InputProcessorProfiles *This = (InputProcessorProfiles*)iface; InputProcessorProfiles *This = (InputProcessorProfiles*)iface;
BOOL accept;
FIXME("STUB:(%p)\n",This); 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; return E_NOTIMPL;
} }