forked from AuroraMiddleware/gtk
GtkLabel: Add alpha support for buildable attributes
Make it possible to set foreground or background alpha in the builder ui support for Pango attributes.
This commit is contained in:
parent
e02acc7d71
commit
0f871be508
@ -1541,6 +1541,14 @@ G_GNUC_END_IGNORE_DEPRECATIONS
|
|||||||
case PANGO_ATTR_FONT_FEATURES:
|
case PANGO_ATTR_FONT_FEATURES:
|
||||||
attribute = pango_attr_font_features_new (value);
|
attribute = pango_attr_font_features_new (value);
|
||||||
break;
|
break;
|
||||||
|
case PANGO_ATTR_FOREGROUND_ALPHA:
|
||||||
|
if (gtk_builder_value_from_string_type (builder, G_TYPE_INT, value, &val, error))
|
||||||
|
attribute = pango_attr_foreground_alpha_new ((guint16)value);
|
||||||
|
break;
|
||||||
|
case PANGO_ATTR_BACKGROUND_ALPHA:
|
||||||
|
if (gtk_builder_value_from_string_type (builder, G_TYPE_INT, value, &val, error))
|
||||||
|
attribute = pango_attr_background_alpha_new ((guint16)value);
|
||||||
|
break;
|
||||||
case PANGO_ATTR_INVALID:
|
case PANGO_ATTR_INVALID:
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user