[Xfce4-commits] <midori:master> Guard 'autocomplete' with WebKitGTK+ 1.7.4
Christian Dywan
noreply at xfce.org
Thu Jan 19 01:40:02 CET 2012
Updating branch refs/heads/master
to 26485b9be246a086bf218d9e79c6bfd59e031f0e (commit)
from 41a0ab4bc7119b3a47eea6b95622c6c29475e75c (commit)
commit 26485b9be246a086bf218d9e79c6bfd59e031f0e
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Jan 19 01:39:02 2012 +0100
Guard 'autocomplete' with WebKitGTK+ 1.7.4
extensions/formhistory/formhistory-gdom-frontend.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/extensions/formhistory/formhistory-gdom-frontend.c b/extensions/formhistory/formhistory-gdom-frontend.c
index 3b4b9f9..3d0d24c 100644
--- a/extensions/formhistory/formhistory-gdom-frontend.c
+++ b/extensions/formhistory/formhistory-gdom-frontend.c
@@ -379,12 +379,15 @@ formhistory_DOMContentLoaded_cb (WebKitDOMElement* window,
for (i = 0; i < webkit_dom_node_list_get_length (inputs); i++)
{
- const gchar* autocomplete;
WebKitDOMNode* element = webkit_dom_node_list_item (inputs, i);
- g_object_get (element, "autocomplete", &autocomplete, NULL);
- /* Dont bind if input is not text or autocomplete is disabled */
- if (!g_strcmp0 (autocomplete, "off"))
+ #if WEBKIT_CHECK_VERSION (1, 7, 4)
+ gchar* autocomplete = webkit_dom_html_input_element_get_autocomplete (
+ WebKitDOMHTMLInputElement (element));
+ gboolean off = !g_strcmp0 (autocomplete, "off");
+ g_free (autocomplete);
+ if (off)
continue;
+ #endif
g_object_set_data (G_OBJECT (element), "doc", doc);
g_object_set_data (G_OBJECT (element), "webview", web_view);
More information about the Xfce4-commits
mailing list