[gtk/harfbuzz-deprecations: 2/2] demo: Ignore deprecated HarfBuzz API
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/harfbuzz-deprecations: 2/2] demo: Ignore deprecated HarfBuzz API
- Date: Fri, 12 Apr 2019 17:44:03 +0000 (UTC)
commit 29a51e99960e5f6752bdc267621fef91d3a98392
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Apr 12 18:42:38 2019 +0100
demo: Ignore deprecated HarfBuzz API
We should avoid warnings just because we're building against bleeding
edge HarfBuzz.
demos/gtk-demo/font_features.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/demos/gtk-demo/font_features.c b/demos/gtk-demo/font_features.c
index 8d647fc946..8299b6461c 100644
--- a/demos/gtk-demo/font_features.c
+++ b/demos/gtk-demo/font_features.c
@@ -495,7 +495,11 @@ update_script_combo (void)
gboolean have_active = FALSE;
lang = gtk_font_chooser_get_language (GTK_FONT_CHOOSER (font));
+
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
active = hb_ot_tag_from_language (hb_language_from_string (lang, -1));
+ G_GNUC_END_IGNORE_DEPRECATIONS
+
g_free (lang);
store = gtk_list_store_new (4, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]