Use wide character API in the Windows IME module
This commit is contained in:
parent
d78cee6791
commit
804effba99
@ -790,7 +790,7 @@ gtk_im_context_ime_set_preedit_font (GtkIMContext *context)
|
|||||||
gunichar wc;
|
gunichar wc;
|
||||||
PangoContext *pango_context;
|
PangoContext *pango_context;
|
||||||
PangoFont *font;
|
PangoFont *font;
|
||||||
LOGFONT *logfont;
|
LOGFONTW *logfont;
|
||||||
|
|
||||||
g_return_if_fail (GTK_IS_IM_CONTEXT_IME (context));
|
g_return_if_fail (GTK_IS_IM_CONTEXT_IME (context));
|
||||||
|
|
||||||
@ -878,9 +878,9 @@ gtk_im_context_ime_set_preedit_font (GtkIMContext *context)
|
|||||||
if (!font)
|
if (!font)
|
||||||
goto ERROR_OUT;
|
goto ERROR_OUT;
|
||||||
|
|
||||||
logfont = pango_win32_font_logfont (font);
|
logfont = pango_win32_font_logfontw (font);
|
||||||
if (logfont)
|
if (logfont)
|
||||||
ImmSetCompositionFont (himc, logfont);
|
ImmSetCompositionFontW (himc, logfont);
|
||||||
|
|
||||||
g_object_unref (font);
|
g_object_unref (font);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user