forked from AuroraMiddleware/gtk
Add pango version checks
Seems the ci does not have pango 1.44 yet.
This commit is contained in:
parent
7a3eaad193
commit
988fac404a
@ -1543,6 +1543,7 @@ attribute_from_text (GtkBuilder *builder,
|
|||||||
if (gtk_builder_value_from_string_type (builder, G_TYPE_INT, value, &val, error))
|
if (gtk_builder_value_from_string_type (builder, G_TYPE_INT, value, &val, error))
|
||||||
attribute = pango_attr_background_alpha_new ((guint16)g_value_get_int (&val));
|
attribute = pango_attr_background_alpha_new ((guint16)g_value_get_int (&val));
|
||||||
break;
|
break;
|
||||||
|
#if PANGO_VERSION_CHECK(1,44,0)
|
||||||
case PANGO_ATTR_ALLOW_BREAKS:
|
case PANGO_ATTR_ALLOW_BREAKS:
|
||||||
if (gtk_builder_value_from_string_type (builder, G_TYPE_BOOLEAN, value, &val, error))
|
if (gtk_builder_value_from_string_type (builder, G_TYPE_BOOLEAN, value, &val, error))
|
||||||
attribute = pango_attr_allow_breaks_new (g_value_get_boolean (&val));
|
attribute = pango_attr_allow_breaks_new (g_value_get_boolean (&val));
|
||||||
@ -1551,6 +1552,7 @@ attribute_from_text (GtkBuilder *builder,
|
|||||||
if (gtk_builder_value_from_string_type (builder, PANGO_TYPE_SHOW_FLAGS, value, &val, error))
|
if (gtk_builder_value_from_string_type (builder, PANGO_TYPE_SHOW_FLAGS, value, &val, error))
|
||||||
attribute = pango_attr_show_new (g_value_get_flags (&val));
|
attribute = pango_attr_show_new (g_value_get_flags (&val));
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case PANGO_ATTR_INVALID:
|
case PANGO_ATTR_INVALID:
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user