aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-03 19:58:31 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-06 04:40:49 +0800
commit2b9713656b939ec657b8d77932a2a7d147aa1f23 (patch)
treefc4b329f387d5c32f05ac1f3f48a29d6369f7610 /modules/calendar
parenta242a2c172878853755efa496b717f867abdd2f8 (diff)
downloadgsoc2013-evolution-2b9713656b939ec657b8d77932a2a7d147aa1f23.tar
gsoc2013-evolution-2b9713656b939ec657b8d77932a2a7d147aa1f23.tar.gz
gsoc2013-evolution-2b9713656b939ec657b8d77932a2a7d147aa1f23.tar.bz2
gsoc2013-evolution-2b9713656b939ec657b8d77932a2a7d147aa1f23.tar.lz
gsoc2013-evolution-2b9713656b939ec657b8d77932a2a7d147aa1f23.tar.xz
gsoc2013-evolution-2b9713656b939ec657b8d77932a2a7d147aa1f23.tar.zst
gsoc2013-evolution-2b9713656b939ec657b8d77932a2a7d147aa1f23.zip
GalViewFactoryEtable: Remove "specification" property.
No longer needed. Removed functions: gal_view_factory_etable_get_specification()
Diffstat (limited to 'modules/calendar')
-rw-r--r--modules/calendar/e-cal-shell-view-private.c19
-rw-r--r--modules/calendar/e-memo-shell-view-private.c19
-rw-r--r--modules/calendar/e-task-shell-view-private.c19
3 files changed, 3 insertions, 54 deletions
diff --git a/modules/calendar/e-cal-shell-view-private.c b/modules/calendar/e-cal-shell-view-private.c
index 7b0c6c472b..be6e67f102 100644
--- a/modules/calendar/e-cal-shell-view-private.c
+++ b/modules/calendar/e-cal-shell-view-private.c
@@ -416,23 +416,9 @@ cal_shell_view_load_view_collection (EShellViewClass *shell_view_class)
{
GalViewCollection *collection;
GalViewFactory *factory;
- ETableSpecification *spec;
- const gchar *base_dir;
- gchar *filename;
- GError *local_error = NULL;
collection = shell_view_class->view_collection;
- base_dir = EVOLUTION_ETSPECDIR;
- filename = g_build_filename (base_dir, ETSPEC_FILENAME, NULL);
- spec = e_table_specification_new (filename, &local_error);
-
- /* Failure here is fatal. */
- if (local_error != NULL) {
- g_error ("%s: %s", filename, local_error->message);
- g_assert_not_reached ();
- }
-
factory = calendar_view_factory_new (GNOME_CAL_DAY_VIEW);
gal_view_collection_add_factory (collection, factory);
g_object_unref (factory);
@@ -449,13 +435,10 @@ cal_shell_view_load_view_collection (EShellViewClass *shell_view_class)
gal_view_collection_add_factory (collection, factory);
g_object_unref (factory);
- factory = gal_view_factory_etable_new (spec);
+ factory = gal_view_factory_etable_new ();
gal_view_collection_add_factory (collection, factory);
g_object_unref (factory);
- g_object_unref (spec);
- g_free (filename);
-
gal_view_collection_load (collection);
}
diff --git a/modules/calendar/e-memo-shell-view-private.c b/modules/calendar/e-memo-shell-view-private.c
index 78d636027a..26c43e1450 100644
--- a/modules/calendar/e-memo-shell-view-private.c
+++ b/modules/calendar/e-memo-shell-view-private.c
@@ -126,30 +126,13 @@ memo_shell_view_load_view_collection (EShellViewClass *shell_view_class)
{
GalViewCollection *collection;
GalViewFactory *factory;
- ETableSpecification *spec;
- const gchar *base_dir;
- gchar *filename;
- GError *local_error = NULL;
collection = shell_view_class->view_collection;
- base_dir = EVOLUTION_ETSPECDIR;
- filename = g_build_filename (base_dir, ETSPEC_FILENAME, NULL);
- spec = e_table_specification_new (filename, &local_error);
-
- /* Failure here is fatal. */
- if (local_error != NULL) {
- g_error ("%s: %s", filename, local_error->message);
- g_assert_not_reached ();
- }
-
- factory = gal_view_factory_etable_new (spec);
+ factory = gal_view_factory_etable_new ();
gal_view_collection_add_factory (collection, factory);
g_object_unref (factory);
- g_object_unref (spec);
- g_free (filename);
-
gal_view_collection_load (collection);
}
diff --git a/modules/calendar/e-task-shell-view-private.c b/modules/calendar/e-task-shell-view-private.c
index fa70b5bcae..ff42581cac 100644
--- a/modules/calendar/e-task-shell-view-private.c
+++ b/modules/calendar/e-task-shell-view-private.c
@@ -191,30 +191,13 @@ task_shell_view_load_view_collection (EShellViewClass *shell_view_class)
{
GalViewCollection *collection;
GalViewFactory *factory;
- ETableSpecification *spec;
- const gchar *base_dir;
- gchar *filename;
- GError *local_error = NULL;
collection = shell_view_class->view_collection;
- base_dir = EVOLUTION_ETSPECDIR;
- filename = g_build_filename (base_dir, ETSPEC_FILENAME, NULL);
- spec = e_table_specification_new (filename, &local_error);
-
- /* Failure here is fatal. */
- if (local_error != NULL) {
- g_error ("%s: %s", filename, local_error->message);
- g_assert_not_reached ();
- }
-
- factory = gal_view_factory_etable_new (spec);
+ factory = gal_view_factory_etable_new ();
gal_view_collection_add_factory (collection, factory);
g_object_unref (factory);
- g_object_unref (spec);
- g_free (filename);
-
gal_view_collection_load (collection);
}