From: Christian Dywan Date: Tue, 10 Jan 2012 00:50:15 +0000 (+0100) Subject: Only define formhistory_suggestions_hide_cb with GDOM X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf4ddd3358df1d6bfbedeed7ef0697fa745b9adf;p=midori Only define formhistory_suggestions_hide_cb with GDOM --- 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) {