epiphany r7978 - trunk/embed/webkit



Author: xan
Date: Sun Feb 24 09:54:42 2008
New Revision: 7978
URL: http://svn.gnome.org/viewvc/epiphany?rev=7978&view=rev

Log:
Make epiphany/webkit start in online mode (though there is no difference
between online and offline mode at this point).


Modified:
   trunk/embed/webkit/webkit-embed-single.c

Modified: trunk/embed/webkit/webkit-embed-single.c
==============================================================================
--- trunk/embed/webkit/webkit-embed-single.c	(original)
+++ trunk/embed/webkit/webkit-embed-single.c	Sun Feb 24 09:54:42 2008
@@ -86,6 +86,8 @@
 webkit_embed_single_init (WebKitEmbedSingle *wes)
 {
   wes->priv = WEBKIT_EMBED_SINGLE_GET_PRIVATE (wes);
+
+  wes->priv->online = TRUE;
 }
 
 static void
@@ -116,12 +118,17 @@
 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 *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]