Updated the GTK+ code to the newest changes. I *do* need to fix this one.

This commit is contained in:
Pietro Gagliardi 2017-05-30 18:46:30 -04:00
parent 81a82723d0
commit c61bbfe5c8
1 changed files with 3 additions and 3 deletions

View File

@ -120,7 +120,7 @@ static int processAttribute(uiAttributedString *s, uiAttributeSpec *spec, size_t
switch (spec->Type) {
case uiAttributeFamily:
addattr(p, start, end,
pango_attr_family_new((const char *) (spec->Value)));
pango_attr_family_new(spec->Family));
break;
case uiAttributeSize:
addattr(p, start, end,
@ -199,8 +199,8 @@ static int processAttribute(uiAttributedString *s, uiAttributeSpec *spec, size_t
}
break;
case uiAttributeFeatures:
// TODO ensure the parentheses around spec->Value are provided on Windows
setFeaturesInRange(p, start, end, (uiOpenTypeFeatures *) (spec->Value));
// TODO ensure the parentheses around spec->Value are provided on Windows (TODO still relevant?)
setFeaturesInRange(p, start, end, spec->Features);
break;
default:
// TODO complain