From bf4ddd3358df1d6bfbedeed7ef0697fa745b9adf Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 10 Jan 2012 01:50:15 +0100 Subject: [PATCH] Only define formhistory_suggestions_hide_cb with GDOM --- extensions/formhistory/formhistory-frontend.h | 4 +++- extensions/formhistory/formhistory-js-frontend.c | 9 --------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/extensions/formhistory/formhistory-frontend.h b/extensions/formhistory/formhistory-frontend.h index 764e89e6..ee919717 100644 --- a/extensions/formhistory/formhistory-frontend.h +++ b/extensions/formhistory/formhistory-frontend.h @@ -27,7 +27,7 @@ typedef struct { sqlite3* db; - #if FORMHISTORY_USE_GDOM + #ifdef FORMHISTORY_USE_GDOM WebKitDOMElement* element; int completion_timeout; GtkTreeModel* completion_model; @@ -55,9 +55,11 @@ formhistory_setup_suggestions (WebKitWebView* web_view, JSContextRef js_context, MidoriExtension* extension); +#ifdef FORMHISTORY_USE_GDOM void formhistory_suggestions_hide_cb (WebKitDOMElement* element, WebKitDOMEvent* dom_event, FormHistoryPriv* priv); +#endif #endif diff --git a/extensions/formhistory/formhistory-js-frontend.c b/extensions/formhistory/formhistory-js-frontend.c index 1943610a..067f1e37 100644 --- a/extensions/formhistory/formhistory-js-frontend.c +++ b/extensions/formhistory/formhistory-js-frontend.c @@ -126,15 +126,6 @@ formhistory_setup_suggestions (WebKitWebView* web_view, g_string_free (suggestions, TRUE); } -void -formhistory_suggestions_hide_cb (WebKitDOMElement* element, - WebKitDOMEvent* dom_event, - FormHistoryPriv* priv) -{ - /* Unused in JS frontend */ - return; -} - void formhistory_private_destroy (FormHistoryPriv *priv) { -- 2.39.5