Only define formhistory_suggestions_hide_cb with GDOM

This commit is contained in:
Christian Dywan 2012-01-10 01:50:15 +01:00
parent 556546320b
commit bf4ddd3358
2 changed files with 3 additions and 10 deletions

View file

@ -27,7 +27,7 @@
typedef struct typedef struct
{ {
sqlite3* db; sqlite3* db;
#if FORMHISTORY_USE_GDOM #ifdef FORMHISTORY_USE_GDOM
WebKitDOMElement* element; WebKitDOMElement* element;
int completion_timeout; int completion_timeout;
GtkTreeModel* completion_model; GtkTreeModel* completion_model;
@ -55,9 +55,11 @@ formhistory_setup_suggestions (WebKitWebView* web_view,
JSContextRef js_context, JSContextRef js_context,
MidoriExtension* extension); MidoriExtension* extension);
#ifdef FORMHISTORY_USE_GDOM
void void
formhistory_suggestions_hide_cb (WebKitDOMElement* element, formhistory_suggestions_hide_cb (WebKitDOMElement* element,
WebKitDOMEvent* dom_event, WebKitDOMEvent* dom_event,
FormHistoryPriv* priv); FormHistoryPriv* priv);
#endif
#endif #endif

View file

@ -126,15 +126,6 @@ formhistory_setup_suggestions (WebKitWebView* web_view,
g_string_free (suggestions, TRUE); g_string_free (suggestions, TRUE);
} }
void
formhistory_suggestions_hide_cb (WebKitDOMElement* element,
WebKitDOMEvent* dom_event,
FormHistoryPriv* priv)
{
/* Unused in JS frontend */
return;
}
void void
formhistory_private_destroy (FormHistoryPriv *priv) formhistory_private_destroy (FormHistoryPriv *priv)
{ {