diff options
author | Xan Lopez <xan@src.gnome.org> | 2008-02-24 17:54:42 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2008-02-24 17:54:42 +0800 |
commit | e217fd856a5a14387bc3e007cd349afab07af2c0 (patch) | |
tree | ed603821bf9438b9cf9195a63b0d81d9281cc490 /embed | |
parent | fc43621cb4331515c1cd2559e39557b40fec131a (diff) | |
download | gsoc2013-epiphany-e217fd856a5a14387bc3e007cd349afab07af2c0.tar gsoc2013-epiphany-e217fd856a5a14387bc3e007cd349afab07af2c0.tar.gz gsoc2013-epiphany-e217fd856a5a14387bc3e007cd349afab07af2c0.tar.bz2 gsoc2013-epiphany-e217fd856a5a14387bc3e007cd349afab07af2c0.tar.lz gsoc2013-epiphany-e217fd856a5a14387bc3e007cd349afab07af2c0.tar.xz gsoc2013-epiphany-e217fd856a5a14387bc3e007cd349afab07af2c0.tar.zst gsoc2013-epiphany-e217fd856a5a14387bc3e007cd349afab07af2c0.zip |
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
Diffstat (limited to 'embed')
-rw-r--r-- | embed/webkit/webkit-embed-single.c | 9 |
1 files changed, 8 insertions, 1 deletions
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 * |