]> spindle.queued.net Git - midori/commitdiff
Only define formhistory_suggestions_hide_cb with GDOM
authorChristian Dywan <christian@twotoasts.de>
Tue, 10 Jan 2012 00:50:15 +0000 (01:50 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 10 Jan 2012 00:50:15 +0000 (01:50 +0100)
extensions/formhistory/formhistory-frontend.h
extensions/formhistory/formhistory-js-frontend.c

index 764e89e61450b7ff423ba3bab48975391164df1a..ee91971785b21b588b30867d34259ef0bbdc4f88 100644 (file)
@@ -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
index 1943610ab94009d871fc9bb2b2a95f0775cc7334..067f1e3735b4a616a2c64cb710ba1e776f573aa2 100644 (file)
@@ -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)
 {