[epiphany/overview] ephy-snapshot-service: don't use the progress estimation to know if the page is loaded
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/overview] ephy-snapshot-service: don't use the progress estimation to know if the page is loaded
- Date: Fri, 10 Aug 2012 14:51:25 +0000 (UTC)
commit 0df57b145671803bae98d7aed8a457f7fc0bdc44
Author: Claudio Saavedra <csaavedra igalia com>
Date: Fri Aug 10 17:48:18 2012 +0300
ephy-snapshot-service: don't use the progress estimation to know if the page is loaded
That seems to be unreliable. webkit_web_view_get_load_status() makes
more sense, since if this is not FINISHED it's this property we'll
monitor for changes.
lib/ephy-snapshot-service.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/ephy-snapshot-service.c b/lib/ephy-snapshot-service.c
index 7a790cc..e74e354 100644
--- a/lib/ephy-snapshot-service.c
+++ b/lib/ephy-snapshot-service.c
@@ -313,7 +313,7 @@ ephy_snapshot_service_take_from_webview (SnapshotOp *op)
G_CALLBACK (webview_load_failed_cb), op);
}
#else
- if (webkit_web_view_get_progress (WEBKIT_WEB_VIEW (webview)) == 1.0)
+ if (webkit_web_view_get_load_status (webview) == WEBKIT_LOAD_FINISHED)
webview_retrieve_snapshot (op);
else
g_signal_connect (webview, "notify::load-status",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]