GNOME Bugzilla – Bug 677983
EvAnnotation is using GdkColor
Last modified: 2012-06-24 14:42:55 UTC
EvAnnotation is using the deprecated GdkColor (and EvAnnotationMarkup is storing a separate opacity double). Instead, there should be a GdkRGBA property on EvAnnotation, and the color and opacity properties and accessors be deprecated. There is a problem in that the poppler API use a GdkColor-lookalike called PopplerColor instead of a GdkRGBA-lookalike. This needs to be fixed in poppler.
Can't we just convert the PopplerColor to GdkRGBA en ev-poppler?
Of course we can :-) I just think it'd be nicer to use only one colour representation in the whole stack, and I think GdkRGBA is that one.
The thing is that poppler doesn't depend on Gdk, so we would need to convert the color anyway. Or do you mean adding PopplerRGBA struct with exactly the same members than GdkRGBA? so that we can just cast instead of convert?
Yes, exactly that, a cast-compatible PopplerRGBA.