[gtk/pango-api-4-4] Handle (and ignore) new Pango api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/pango-api-4-4] Handle (and ignore) new Pango api
- Date: Wed, 10 Nov 2021 17:09:09 +0000 (UTC)
commit c09e7fabc87801ded8d6c5e23c6ae6ebbcb3eb39
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Nov 10 12:07:41 2021 -0500
Handle (and ignore) new Pango api
The PangoVariant enumeration grew some new
members. Ignore them.
gtk/a11y/gtkatspipango.c | 9 +++++++++
gtk/gtkfontbutton.c | 9 +++++++++
2 files changed, 18 insertions(+)
---
diff --git a/gtk/a11y/gtkatspipango.c b/gtk/a11y/gtkatspipango.c
index 4c71b03b96..f9e8eb87d0 100644
--- a/gtk/a11y/gtkatspipango.c
+++ b/gtk/a11y/gtkatspipango.c
@@ -40,8 +40,17 @@ pango_variant_to_string (PangoVariant variant)
{
switch (variant)
{
+#if PANGO_VERSION_CHECK(1,49,3)
+ case PANGO_VARIANT_UNICASE:
+ case PANGO_VARIANT_TITLE_CAPS:
+#endif
case PANGO_VARIANT_NORMAL:
return "normal";
+#if PANGO_VERSION_CHECK(1,49,3)
+ case PANGO_VARIANT_ALL_SMALL_CAPS:
+ case PANGO_VARIANT_PETITE_CAPS:
+ case PANGO_VARIANT_ALL_PETITE_CAPS:
+#endif
case PANGO_VARIANT_SMALL_CAPS:
return "small_caps";
default:
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c
index fe125fd84d..c1a543a1f7 100644
--- a/gtk/gtkfontbutton.c
+++ b/gtk/gtkfontbutton.c
@@ -1190,8 +1190,17 @@ pango_font_description_to_css (PangoFontDescription *desc,
g_string_append (s, "font-variant: normal; ");
break;
case PANGO_VARIANT_SMALL_CAPS:
+#if PANGO_VERSION_CHECK(1,49,3)
+ case PANGO_VARIANT_ALL_SMALL_CAPS:
+ case PANGO_VARIANT_PETITE_CAPS:
+ case PANGO_VARIANT_ALL_PETITE_CAPS:
+#endif
g_string_append (s, "font-variant: small-caps; ");
break;
+#if PANGO_VERSION_CHECK(1,49,3)
+ case PANGO_VARIANT_UNICASE:
+ case PANGO_VARIANT_TITLE_CAPS:
+#endif
default:
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]