aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-06 03:59:22 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-06 04:40:51 +0800
commit61a773db49f50e3d0a5a69cbd105e40b281ae722 (patch)
tree0a0744111ed98ea5a7bed677e5d33938fb8ace59 /shell
parentdf1dc37704daf3b1f20d1632b1cef1ea0a2181ad (diff)
downloadgsoc2013-evolution-61a773db49f50e3d0a5a69cbd105e40b281ae722.tar
gsoc2013-evolution-61a773db49f50e3d0a5a69cbd105e40b281ae722.tar.gz
gsoc2013-evolution-61a773db49f50e3d0a5a69cbd105e40b281ae722.tar.bz2
gsoc2013-evolution-61a773db49f50e3d0a5a69cbd105e40b281ae722.tar.lz
gsoc2013-evolution-61a773db49f50e3d0a5a69cbd105e40b281ae722.tar.xz
gsoc2013-evolution-61a773db49f50e3d0a5a69cbd105e40b281ae722.tar.zst
gsoc2013-evolution-61a773db49f50e3d0a5a69cbd105e40b281ae722.zip
GalViewCollection: Load files during instance initialization.
gal_view_collection_new() now takes system and user directory arguments and loads GalViews during instance initialization. Removed functions: gal_view_collection_set_storage_directories() gal_view_collection_load() gal_view_collection_loaded()
Diffstat (limited to 'shell')
-rw-r--r--shell/e-shell-view.c30
1 files changed, 13 insertions, 17 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 253bae2e3f..a7aa4e8541 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -153,31 +153,27 @@ static void
shell_view_init_view_collection (EShellViewClass *class)
{
EShellBackend *shell_backend;
- const gchar *base_dir;
- const gchar *backend_name;
- gchar *system_dir;
- gchar *local_dir;
+ const gchar *base_directory;
+ const gchar *name;
+ gchar *system_directory;
+ gchar *user_directory;
shell_backend = class->shell_backend;
g_return_if_fail (E_IS_SHELL_BACKEND (shell_backend));
- backend_name = E_SHELL_BACKEND_GET_CLASS (shell_backend)->name;
+ name = E_SHELL_BACKEND_GET_CLASS (shell_backend)->name;
- base_dir = EVOLUTION_GALVIEWSDIR;
- system_dir = g_build_filename (base_dir, backend_name, NULL);
+ base_directory = EVOLUTION_GALVIEWSDIR;
+ system_directory = g_build_filename (base_directory, name, NULL);
- base_dir = e_shell_backend_get_config_dir (shell_backend);
- local_dir = g_build_filename (base_dir, "views", NULL);
+ base_directory = e_shell_backend_get_config_dir (shell_backend);
+ user_directory = g_build_filename (base_directory, "views", NULL);
/* The view collection is never destroyed. */
- class->view_collection = gal_view_collection_new ();
+ class->view_collection = gal_view_collection_new (
+ system_directory, user_directory);
- 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);
+ g_free (system_directory);
+ g_free (user_directory);
}
static void