From e217fd856a5a14387bc3e007cd349afab07af2c0 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sun, 24 Feb 2008 09:54:42 +0000 Subject: Make epiphany/webkit start in online mode (though there is no difference between online and offline mode at this point). svn path=/trunk/; revision=7978 --- embed/webkit/webkit-embed-single.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'embed') diff --git a/embed/webkit/webkit-embed-single.c b/embed/webkit/webkit-embed-single.c index 3c3fd2cde..2aa778c74 100644 --- a/embed/webkit/webkit-embed-single.c +++ b/embed/webkit/webkit-embed-single.c @@ -86,6 +86,8 @@ static void webkit_embed_single_init (WebKitEmbedSingle *wes) { wes->priv = WEBKIT_EMBED_SINGLE_GET_PRIVATE (wes); + + wes->priv->online = TRUE; } static void @@ -116,12 +118,17 @@ static void impl_set_network_status (EphyEmbedSingle *single, gboolean online) { + WebKitEmbedSinglePrivate *priv = WEBKIT_EMBED_SINGLE (single)->priv; + + if (online != priv->online) { + priv->online = online; + } } static gboolean impl_get_network_status (EphyEmbedSingle *esingle) { - return FALSE; + return WEBKIT_EMBED_SINGLE (esingle)->priv->online; } static const char * -- cgit v1.2.3