mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
Font chooser: Also apply font map to preview
Otherwise, the preview is not showing a selected custom font.
This commit is contained in:
parent
647f0e6025
commit
7a5329578c
@ -1252,6 +1252,9 @@ gtk_font_chooser_widget_set_font_map (GtkFontChooserWidget *fontchooser,
|
||||
context = gtk_widget_get_pango_context (priv->family_face_list);
|
||||
pango_context_set_font_map (context, fontmap);
|
||||
|
||||
context = gtk_widget_get_pango_context (priv->preview);
|
||||
pango_context_set_font_map (context, fontmap);
|
||||
|
||||
gtk_font_chooser_widget_load_fonts (fontchooser, TRUE);
|
||||
|
||||
g_object_notify (G_OBJECT (fontchooser), "font-map");
|
||||
|
Loading…
Reference in New Issue
Block a user