GNOME Bugzilla – Bug 637298
Need modern equivalent of deprecated GtkStyle style->color
Last modified: 2010-12-15 14:04:45 UTC
So, I'm trying to port Empathy to GtkStyleContext (bug #636654) and I'm blocked because it seems there is no modern equivalent of some old API. One is accessing colors from the theme. We use to do things like style->white but I didn't find any equivalent in the new API.
White is easy: { 1.0, 1.0, 1.0, 1.0 } (the white color in GtkStyle was never in any way theme-dependent) For colors in general, see gtk_style_context_get{_, _background_, _border_}color. Also see the section on colors in the migration guide (it will be expanded in the next release).
I see, thanks for the clarification.