Comment 2 for bug 1322922

Revision history for this message
Danielle Foré (danrabbit) wrote :

Okay, this is way above my head, but here's what I've discovered:

The end goal is to use subtitle_label.set_attributes (attr_list); where attr_list is a Pango.AttributeList that contains the RGB values for our Pango foreground color.

The problem is that Gtk.StyleContext.lookup_color returns double values and Pango wants uint16 values.

So there's this whole song and dance about getting the RGB values from style context and storing them in a Gdk.RGBA and converting those values to something pango can read and then creating the attr_list.

So yeah.