[epiphany/overview] ephy-web-view: take a snapshot if needed when the page load finishes
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/overview] ephy-web-view: take a snapshot if needed when the page load finishes
- Date: Mon, 20 Aug 2012 16:13:55 +0000 (UTC)
commit 6a9a47df357526dc84306c2d1d4e03a43653a1a8
Author: Claudio Saavedra <csaavedra igalia com>
Date: Mon Aug 20 19:05:18 2012 +0300
ephy-web-view: take a snapshot if needed when the page load finishes
embed/ephy-web-view.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 1037cca..8c052a1 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2307,6 +2307,8 @@ load_status_cb (WebKitWebView *web_view,
}
case WEBKIT_LOAD_FINISHED: {
SoupURI *uri;
+ EphyOverviewStore *store;
+ GtkTreeIter iter;
priv->loading_homepage = FALSE;
@@ -2356,6 +2358,13 @@ load_status_cb (WebKitWebView *web_view,
/* Reset visit type. */
priv->visit_type = EPHY_PAGE_VISIT_NONE;
+ store = EPHY_OVERVIEW_STORE (ephy_embed_shell_get_frecent_store (embed_shell));
+ if (ephy_overview_store_find_url (store, webkit_web_view_get_uri (web_view), &iter) &&
+ ephy_overview_store_needs_snapshot (store, &iter))
+ ephy_overview_store_set_snapshot (store, &iter,
+ webkit_web_view_get_snapshot (web_view));
+
+
break;
}
case WEBKIT_LOAD_FAILED:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]