aboutsummaryrefslogtreecommitdiffstats
path: root/embed/webkit/webkit-embed-single.c
diff options
context:
space:
mode:
Diffstat (limited to 'embed/webkit/webkit-embed-single.c')
-rw-r--r--embed/webkit/webkit-embed-single.c9
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 *