[epiphany/overview-2: 7/9] Use the base model with the overview



commit 2800b6e6f018c41ddc5d2e7dffc93c1ae6ac9096
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Wed Jan 25 18:25:07 2012 +0200

    Use the base model with the overview
    
    This will show an empty overview for the time being.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=455173

 src/ephy-window.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index cdcad53..5b01d52 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -46,6 +46,7 @@
 #include "ephy-location-entry.h"
 #include "ephy-navigation-history-action.h"
 #include "ephy-notebook.h"
+#include "ephy-overview-store.h"
 #include "ephy-page-menu-action.h"
 #include "ephy-prefs.h"
 #include "ephy-private.h"
@@ -2835,6 +2836,17 @@ setup_notebook (EphyWindow *window)
 }
 
 static void
+setup_main_view (EphyWindow *window)
+{
+	EphyOverviewStore *store;
+	GtkWidget *main_view = window->priv->main_view;
+
+	store = g_object_new (EPHY_TYPE_OVERVIEW_STORE, NULL);
+	gd_main_view_set_model (GD_MAIN_VIEW (main_view),
+				GTK_TREE_MODEL (store));
+}
+
+static void
 ephy_window_set_chrome (EphyWindow *window, EphyWebViewChrome mask)
 {
 	EphyWebViewChrome chrome_mask = mask;
@@ -3356,6 +3368,7 @@ ephy_window_constructor (GType type,
 			    GTK_WIDGET (priv->find_toolbar), FALSE, FALSE, 0);
 
 	priv->main_view = GTK_WIDGET (gd_main_view_new (GD_MAIN_VIEW_ICON));
+	setup_main_view (window);
 	gtk_box_pack_start (GTK_BOX (priv->main_vbox),
 			    priv->main_view,
 			    TRUE, TRUE, 0);



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