mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
win32: Don't save/restore the context for querying the font
Use the font in the current state.
This commit is contained in:
parent
193eb5b0dd
commit
d59784f7c7
@ -924,13 +924,10 @@ gtk_im_context_ime_set_preedit_font (GtkIMContext *context)
|
||||
}
|
||||
|
||||
style = gtk_widget_get_style_context (widget);
|
||||
gtk_style_context_save (style);
|
||||
gtk_style_context_set_state (style, GTK_STATE_FLAG_NORMAL);
|
||||
gtk_style_context_get (style,
|
||||
"font",
|
||||
&font_desc,
|
||||
NULL);
|
||||
gtk_style_context_restore (style);
|
||||
|
||||
if (lang[0])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user