diff options
author | Alejandro G. Castro <alex@igalia.com> | 2010-04-30 01:24:20 +0800 |
---|---|---|
committer | Alejandro G. Castro <alex@igalia.com> | 2010-05-02 23:09:56 +0800 |
commit | 4e914078cd832490b1d31804836f3ac2274fdaf0 (patch) | |
tree | 1925b670adeedbbab429ad189786b9d503b83919 /embed/ephy-embed.c | |
parent | e355b448ed3f5002ba11e7e76a9de9c0d9630e6f (diff) | |
download | gsoc2013-epiphany-4e914078cd832490b1d31804836f3ac2274fdaf0.tar gsoc2013-epiphany-4e914078cd832490b1d31804836f3ac2274fdaf0.tar.gz gsoc2013-epiphany-4e914078cd832490b1d31804836f3ac2274fdaf0.tar.bz2 gsoc2013-epiphany-4e914078cd832490b1d31804836f3ac2274fdaf0.tar.lz gsoc2013-epiphany-4e914078cd832490b1d31804836f3ac2274fdaf0.tar.xz gsoc2013-epiphany-4e914078cd832490b1d31804836f3ac2274fdaf0.tar.zst gsoc2013-epiphany-4e914078cd832490b1d31804836f3ac2274fdaf0.zip |
Removed the EphyWebViewNetState enum
We can use the webkit load status (WebKitLoadStatus) and avoid
defining our own enum to check the net states.
Bug #593743
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r-- | embed/ephy-embed.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 8f2c4738b..878cd36f1 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -245,7 +245,6 @@ load_status_changed_cb (WebKitWebView *view, ephy_web_view_set_security_level (EPHY_WEB_VIEW (view), security_level); } else if (status == WEBKIT_LOAD_PROVISIONAL || status == WEBKIT_LOAD_FINISHED) { - EphyWebViewNetState estate = EPHY_WEB_VIEW_STATE_UNKNOWN; char *loading_uri = NULL; if (status == WEBKIT_LOAD_PROVISIONAL) { @@ -262,12 +261,6 @@ load_status_changed_cb (WebKitWebView *view, * we will want to use it in WEBKIT_LOAD_FINISHED, because if a * load fails we may never get to committed */ priv->loading_uri = g_strdup (loading_uri); - - estate = (EphyWebViewNetState) (estate | - EPHY_WEB_VIEW_STATE_START | - EPHY_WEB_VIEW_STATE_NEGOTIATING | - EPHY_WEB_VIEW_STATE_IS_REQUEST | - EPHY_WEB_VIEW_STATE_IS_NETWORK); g_signal_emit_by_name (EPHY_WEB_VIEW (view), "new-document-now", loading_uri); } else if (status == WEBKIT_LOAD_FINISHED) { @@ -276,15 +269,11 @@ load_status_changed_cb (WebKitWebView *view, /* Will be freed below */ priv->loading_uri = NULL; - estate = (EphyWebViewNetState) (estate | - EPHY_WEB_VIEW_STATE_STOP | - EPHY_WEB_VIEW_STATE_IS_DOCUMENT | - EPHY_WEB_VIEW_STATE_IS_NETWORK); } ephy_web_view_update_from_net_state (EPHY_WEB_VIEW (view), loading_uri, - (EphyWebViewNetState)estate); + status); g_free (loading_uri); |