/pidgin/main: 6c0ecaf82229: Workaround WebKit API bug.

Elliott Sales de Andrade qulogic at pidgin.im
Mon Nov 5 18:15:57 EST 2012


Changeset: 6c0ecaf82229adc7494bbdd742a0ba972846b66c
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2012-09-09 23:12 -0400
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/6c0ecaf82229

Description:

Workaround WebKit API bug.

diffstat:

 pidgin/gtkdebug.c |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (18 lines):

diff --git a/pidgin/gtkdebug.c b/pidgin/gtkdebug.c
--- a/pidgin/gtkdebug.c
+++ b/pidgin/gtkdebug.c
@@ -207,7 +207,14 @@ regex_toggle_div(WebKitDOMNode *div)
 	if (!WEBKIT_DOM_IS_HTML_ELEMENT(div))
 		return;
 
+#if (WEBKIT_MAJOR_VERSION == 1 && \
+     WEBKIT_MINOR_VERSION == 9 && \
+     WEBKIT_MICRO_VERSION == 90)
+	/* Workaround WebKit API bug. */
+	classes = webkit_dom_element_get_class_list(WEBKIT_DOM_ELEMENT(div));
+#else
 	classes = webkit_dom_html_element_get_class_list(WEBKIT_DOM_HTML_ELEMENT(div));
+#endif
 	webkit_dom_dom_token_list_toggle(classes, "hide", NULL);
 }
 



More information about the Commits mailing list