[epiphany/in-tab-overview: 22/23] 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/in-tab-overview: 22/23] ephy-web-view: take a snapshot if needed when the page load finishes
- Date: Fri, 24 Aug 2012 07:49:07 +0000 (UTC)
commit 9f54aef72c7e21512192273146d794f82bbd8e21
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 5dede1a..3d6cb75 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2333,6 +2333,8 @@ load_status_cb (WebKitWebView *web_view,
}
case WEBKIT_LOAD_FINISHED: {
SoupURI *uri;
+ EphyOverviewStore *store;
+ GtkTreeIter iter;
priv->loading_homepage = FALSE;
@@ -2382,6 +2384,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]