aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/folder-browser-factory.c')
-rw-r--r--mail/folder-browser-factory.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c
index f76c858b05..e9bd4adc87 100644
--- a/mail/folder-browser-factory.c
+++ b/mail/folder-browser-factory.c
@@ -155,7 +155,7 @@ folder_browser_setup_view_menus (FolderBrowser *fb,
GalViewMenus *views;
GalViewFactory *factory;
ETableSpecification *spec;
- char *spec_string, *local_dir;
+ char *local_dir;
collection = gal_view_collection_new();
/* FIXME: Memory leak. */
@@ -167,10 +167,8 @@ folder_browser_setup_view_menus (FolderBrowser *fb,
local_dir);
g_free (local_dir);
- spec_string = message_list_get_layout(fb->message_list);
spec = e_table_specification_new();
- e_table_specification_load_from_string(spec, spec_string);
- g_free(spec_string);
+ e_table_specification_load_from_file(spec, EVOLUTION_ETSPECDIR "/message-list.etspec");
factory = gal_view_factory_etable_new(spec);
gal_view_collection_add_factory(collection, factory);