pidgin/pidgin

Parents 783878958371
Children 4616ae5456f8
gtkwebviewtoolbar: fix painting of font button background

Some versions of WebKitGTK may represent "transparent" background color as
'rgba(0, 0, 0, 0)' which Pidgin, ignoring the alpha component, wrongly
interpreted as black and therefore painted the font button label that color.
--- a/pidgin/gtkwebviewtoolbar.c Tue Oct 25 19:48:55 2016 +0000
+++ b/pidgin/gtkwebviewtoolbar.c Mon Oct 24 09:27:08 2016 +0200
@@ -132,7 +132,7 @@
if (color == NULL)
color = &dummy_color;
- if (strcmp(str, "inherit") == 0) {
+ if ((strcmp(str, "inherit") == 0) || (strcmp(str, "rgba(0, 0, 0, 0)") == 0)) {
return FALSE;
} else {
return gdk_rgba_parse(color, str);