From df1dc37704daf3b1f20d1632b1cef1ea0a2181ad Mon Sep 17 00:00:00 2001
From: Matthew Barnes <mbarnes@redhat.com>
Date: Fri, 5 Jul 2013 13:26:43 -0400
Subject: EShellView can load the GalViewCollection itself now.

EShellView no longer needs help from subclasses other than getting
the needed GalView subclasses registered.

A nice side-effect of this is EShellView subclasses can now use the
G_DEFINE_DYNAMIC_TYPE macro.
---
 shell/e-shell-view.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'shell/e-shell-view.c')

diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index b4ae29b6a7..253bae2e3f 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -174,11 +174,10 @@ shell_view_init_view_collection (EShellViewClass *class)
 	gal_view_collection_set_storage_directories (
 		class->view_collection, system_dir, local_dir);
 
+	gal_view_collection_load (class->view_collection);
+
 	g_free (system_dir);
 	g_free (local_dir);
-
-	/* This is all we can do.  It's up to the subclasses to
-	 * add the appropriate factories to the view collection. */
 }
 
 static void
-- 
cgit v1.2.3