summaryrefslogtreecommitdiff
path: root/gtk/gtktextlayout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-06-06 21:32:55 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-06-06 21:32:55 -0400
commitb251893030a0da7c98e139aaf70d8397707ecb18 (patch)
tree3581e01832786ad53a6b84ebb212d560f3af3237 /gtk/gtktextlayout.c
parent15257e39222e8313c850ac2a9ba371cc2c648cc7 (diff)
downloadgtk+-b251893030a0da7c98e139aaf70d8397707ecb18.tar.gz
Drop pango version checks
We are requiring pango 1.45.0 now, so no need to Keep these ifdefs in the code any longer.
Diffstat (limited to 'gtk/gtktextlayout.c')
-rw-r--r--gtk/gtktextlayout.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index d07413d16a..a72a23f051 100644
--- a/gtk/gtktextlayout.c
+++ b/gtk/gtktextlayout.c
@@ -1597,7 +1597,6 @@ add_generic_attrs (GtkTextLayout *layout,
pango_attr_list_insert (attrs, attr);
}
-#if PANGO_VERSION_CHECK(1,45,0)
if (appearance->overline != PANGO_OVERLINE_NONE)
{
attr = pango_attr_overline_new (appearance->overline);
@@ -1619,7 +1618,6 @@ add_generic_attrs (GtkTextLayout *layout,
pango_attr_list_insert (attrs, attr);
}
-#endif
if (appearance->strikethrough)
{
@@ -2140,7 +2138,6 @@ add_preedit_attrs (GtkTextLayout *layout,
gdk_rgba_free (appearance.underline_rgba);
appearance.underline_rgba = gdk_rgba_copy (&rgba);
break;
-#if PANGO_VERSION_CHECK(1,45,0)
case PANGO_ATTR_OVERLINE:
appearance.overline = ((PangoAttrInt *)attr)->value;
break;
@@ -2150,7 +2147,6 @@ add_preedit_attrs (GtkTextLayout *layout,
gdk_rgba_free (appearance.overline_rgba);
appearance.overline_rgba = gdk_rgba_copy (&rgba);
break;
-#endif
case PANGO_ATTR_STRIKETHROUGH:
appearance.strikethrough = ((PangoAttrInt *)attr)->value;
break;