[epiphany/overview] ephy-overview: take the frecent store from the shell



commit a98ea7187ad3916fc2700e99909c8f6dacfad05a
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Mon Aug 20 17:05:08 2012 +0300

    ephy-overview: take the frecent store from the shell
    
    So that it's shared among all overviews in tabs.

 embed/ephy-overview.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-overview.c b/embed/ephy-overview.c
index 890b3c0..9ff0c81 100644
--- a/embed/ephy-overview.c
+++ b/embed/ephy-overview.c
@@ -20,6 +20,7 @@
  */
 
 #include "config.h"
+#include "ephy-embed-shell.h"
 #include "ephy-frecent-store.h"
 #include "ephy-snapshot-service.h"
 #include "ephy-history-service.h"
@@ -201,7 +202,7 @@ ephy_overview_constructed (GObject *object)
   g_signal_connect (self->priv->frecent_view, "item-deleted",
                     G_CALLBACK (frecent_view_item_deleted), NULL);
 
-  store = EPHY_OVERVIEW_STORE (ephy_frecent_store_new ());
+  store = ephy_embed_shell_get_frecent_store (EPHY_EMBED_SHELL (ephy_shell_get_default()));
   g_object_set (G_OBJECT (store),
                 "default-icon", default_icon,
                 NULL);



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