commit | 3dc220718412431322c00e1f820c9ce0168892f5 | [log] [tgz] |
---|---|---|
author | Eric Williams <ericwill@redhat.com> | Mon Nov 23 10:37:11 2015 -0500 |
committer | Alexander Kurtakov <akurtako@redhat.com> | Tue Nov 24 06:49:09 2015 -0500 |
tree | eb7bd96d3b2facad9733b3ddb6456f329304471d | |
parent | f736dbfd5d0ce9567f1410c8e42cbad12a1935ca [diff] |
Bug 481122: [GTK3.18+] some set/get Background/Foreground color methods have no effect With changes in GTK3.18 and onward, gtk_style_context_get_color() behaves differently. In order to correctly fetch the color we must first save the GtkStyleContext, set its state, fetch the color, and then restore the GtkStyleContext. Failure to do this on GTK3.18+ leads to failures in the getForegroundColor() method. The convenience method styleContextGetColor() in Display takes care of the process. Tested on GTK 3.18, 3.16, 3.14, 3.8, and 2.24. All foreground color related tests on GTK3 now pass. GTK2 behaviour remains unchanged. Change-Id: I6423edab5038dc0ef54afc6dd826f19fc936f987 Signed-off-by: Eric Williams <ericwill@redhat.com>
Thanks for your interest in this project.
Information regarding source code management, builds, coding standards, and more.
Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).
Contact the project developers via the project's “dev” list.
This project uses Bugzilla to track ongoing development and issues.
Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!