mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 09:00:34 +00:00
Don't use deprecated Pango api
This commit is contained in:
parent
e4cee92e22
commit
7e1e5451d4
@ -475,7 +475,7 @@ gtk_print_context_create_pango_context (GtkPrintContext *context)
|
|||||||
|
|
||||||
g_return_val_if_fail (GTK_IS_PRINT_CONTEXT (context), NULL);
|
g_return_val_if_fail (GTK_IS_PRINT_CONTEXT (context), NULL);
|
||||||
|
|
||||||
pango_context = pango_cairo_font_map_create_context (PANGO_CAIRO_FONT_MAP (_gtk_print_context_get_fontmap (context)));
|
pango_context = pango_font_map_create_context (_gtk_print_context_get_fontmap (context));
|
||||||
|
|
||||||
options = cairo_font_options_create ();
|
options = cairo_font_options_create ();
|
||||||
cairo_font_options_set_hint_metrics (options, CAIRO_HINT_METRICS_OFF);
|
cairo_font_options_set_hint_metrics (options, CAIRO_HINT_METRICS_OFF);
|
||||||
|
Loading…
Reference in New Issue
Block a user