[gtk+] Use wide character API in the Windows IME module
- From: Tor Lillqvist <tml src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Use wide character API in the Windows IME module
- Date: Sun, 27 Jun 2010 21:21:50 +0000 (UTC)
commit 804effba9938b3e5ffcad1e731fdf83daf3e0aac
Author: Tor Lillqvist <tml iki fi>
Date: Sun Jun 27 23:20:17 2010 +0300
Use wide character API in the Windows IME module
modules/input/gtkimcontextime.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/modules/input/gtkimcontextime.c b/modules/input/gtkimcontextime.c
index 84fd1e0..2b608a4 100644
--- a/modules/input/gtkimcontextime.c
+++ b/modules/input/gtkimcontextime.c
@@ -790,7 +790,7 @@ gtk_im_context_ime_set_preedit_font (GtkIMContext *context)
gunichar wc;
PangoContext *pango_context;
PangoFont *font;
- LOGFONT *logfont;
+ LOGFONTW *logfont;
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)
goto ERROR_OUT;
- logfont = pango_win32_font_logfont (font);
+ logfont = pango_win32_font_logfontw (font);
if (logfont)
- ImmSetCompositionFont (himc, logfont);
+ ImmSetCompositionFontW (himc, logfont);
g_object_unref (font);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]