Commit 2dbd0a47 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos Committed by Carlos Garcia Campos

Fix the build with WebKit2

parent ce7ab1e3
......@@ -81,7 +81,11 @@ struct _EphyEmbedPrivate
GtkWidget *fullscreen_message_label;
char *fullscreen_string;
#ifdef HAVE_WEBKIT2
WebKitURIRequest *delayed_request;
#else
WebKitNetworkRequest *delayed_request;
#endif
GtkWidget *overview;
guint overview_mode : 1;
......@@ -1223,11 +1227,20 @@ ephy_embed_get_overview_mode (EphyEmbed *embed)
* Sets the #WebKitNetworkRequest that should be loaded when the tab this embed
* is on is switched to.
*/
#ifdef HAVE_WEBKIT2
void
ephy_embed_set_delayed_load_request (EphyEmbed *embed, WebKitURIRequest *request)
#else
void
ephy_embed_set_delayed_load_request (EphyEmbed *embed, WebKitNetworkRequest *request)
#endif
{
g_return_if_fail (EPHY_IS_EMBED (embed));
#ifdef HAVE_WEBKIT2
g_return_if_fail (WEBKIT_IS_URI_REQUEST (request));
#else
g_return_if_fail (WEBKIT_IS_NETWORK_REQUEST (request));
#endif
g_clear_object (&embed->priv->delayed_request);
......
......@@ -63,7 +63,11 @@ void ephy_embed_auto_download_url (EphyEmbed *embed,
void ephy_embed_entering_fullscreen (EphyEmbed *embed);
void ephy_embed_leaving_fullscreen (EphyEmbed *embed);
void ephy_embed_set_delayed_load_request (EphyEmbed *embed,
#ifdef HAVE_WEBKIT2
WebKitURIRequest *request);
#else
WebKitNetworkRequest *request);
#endif
gboolean ephy_embed_has_load_pending (EphyEmbed *embed);
void ephy_embed_set_overview_mode (EphyEmbed *embed,
gboolean overview_mode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment