summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-10-21 21:54:38 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-10-21 21:54:38 -0400
commit3723778f427af7c095c1f6d7218fe4e0863c2429 (patch)
tree982480fbc6df957bef4e5b2c064a6b9f4350a2a7 /gtk
parent3fc3f8d2ff0006094bc0da385959a3558161eacc (diff)
downloadgtk+-3723778f427af7c095c1f6d7218fe4e0863c2429.tar.gz
fontchooser: Stop using deprecated harfbuzz api
The replacement is very straightforward.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkfontchooserwidget.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index e35b961dff..c645739644 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -1870,9 +1870,7 @@ find_affected_text (GtkFontChooserWidget *fontchooser,
hb_ot_layout_table_find_script (hb_face, HB_OT_TAG_GSUB, script_tag, &script_index);
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- hb_ot_layout_script_find_language (hb_face, HB_OT_TAG_GSUB, script_index, lang_tag, &lang_index);
- G_GNUC_END_IGNORE_DEPRECATIONS
+ hb_ot_layout_script_select_language (hb_face, HB_OT_TAG_GSUB, script_index, 1, &lang_tag, &lang_index);
if (hb_ot_layout_language_find_feature (hb_face,
HB_OT_TAG_GSUB,
@@ -2013,9 +2011,7 @@ update_feature_label (GtkFontChooserWidget *fontchooser,
hb_ot_layout_table_find_script (hb_face, HB_OT_TAG_GSUB, script_tag, &script_index);
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- hb_ot_layout_script_find_language (hb_face, HB_OT_TAG_GSUB, script_index, lang_tag, &lang_index);
- G_GNUC_END_IGNORE_DEPRECATIONS
+ hb_ot_layout_script_select_language (hb_face, HB_OT_TAG_GSUB, script_index, 1, &lang_tag, &lang_index);
if (hb_ot_layout_language_find_feature (hb_face, HB_OT_TAG_GSUB, script_index, lang_index, item->tag, &feature_index))
{
@@ -2565,9 +2561,7 @@ gtk_font_chooser_widget_update_font_features (GtkFontChooserWidget *fontchooser)
{
hb_ot_layout_table_find_script (hb_face, table[i], script_tag, &script_index);
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- hb_ot_layout_script_find_language (hb_face, table[i], script_index, lang_tag, &lang_index);
- G_GNUC_END_IGNORE_DEPRECATIONS
+ hb_ot_layout_script_select_language (hb_face, table[i], script_index, 1, &lang_tag, &lang_index);
feat = features + n_features;
count = G_N_ELEMENTS (features) - n_features;