summaryrefslogtreecommitdiff
path: root/modules/input
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2010-09-09 11:09:55 +0300
committerTor Lillqvist <tml@iki.fi>2010-09-09 11:09:55 +0300
commitf76fddb8a7d260dff2ce8b87965ab4f41006a592 (patch)
treea28063ec7b2b8d28c5ce1c5da1d3c0726b6f0af9 /modules/input
parentdd36afc2078dc0072b3dd4d17841b271b4ed770c (diff)
downloadgtk+-f76fddb8a7d260dff2ce8b87965ab4f41006a592.tar.gz
Use accessor functions in Win32-only code
Diffstat (limited to 'modules/input')
-rw-r--r--modules/input/gtkimcontextime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/input/gtkimcontextime.c b/modules/input/gtkimcontextime.c
index 84fd1e0c83..d6cdd9b32f 100644
--- a/modules/input/gtkimcontextime.c
+++ b/modules/input/gtkimcontextime.c
@@ -851,7 +851,7 @@ gtk_im_context_ime_set_preedit_font (GtkIMContext *context)
PangoLanguage *pango_lang = pango_language_from_string (lang);
PangoFontset *fontset =
pango_context_load_fontset (pango_context,
- widget->style->font_desc,
+ gtk_widget_get_style (widget)->font_desc,
pango_lang);
gunichar *sample =
g_utf8_to_ucs4 (pango_language_get_sample_string (pango_lang),
@@ -873,7 +873,7 @@ gtk_im_context_ime_set_preedit_font (GtkIMContext *context)
g_object_unref (fontset);
}
else
- font = pango_context_load_font (pango_context, widget->style->font_desc);
+ font = pango_context_load_font (pango_context, gtk_widget_get_style (widget)->font_desc);
if (!font)
goto ERROR_OUT;