aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-14 23:17:55 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-14 23:27:44 +0800
commitb355b7c2ed87e22b6f8a2471459277ab482c2d7a (patch)
tree682d7f91e4e8c67d3adaa070003903845bc16d4a /mail
parent0f8f88fe7ec39e31770ea7aeda69932a62a8d3ef (diff)
downloadgsoc2013-evolution-b355b7c2ed87e22b6f8a2471459277ab482c2d7a.tar.gz
gsoc2013-evolution-b355b7c2ed87e22b6f8a2471459277ab482c2d7a.tar.zst
gsoc2013-evolution-b355b7c2ed87e22b6f8a2471459277ab482c2d7a.zip
ESettingsMessageList: Apply the "thread-expanded" setting.
Diffstat (limited to 'mail')
-rw-r--r--mail/message-list.c53
1 files changed, 25 insertions, 28 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index c87108301c..bf04cd2c37 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -2565,6 +2565,31 @@ message_list_init (MessageList *message_list)
message_list->priv = MESSAGE_LIST_GET_PRIVATE (message_list);
+ /* FIXME This should be a GTypeInterface. */
+ message_list->model = e_tree_memory_callbacks_new (
+ ml_tree_icon_at,
+
+ ml_column_count,
+
+ ml_has_save_id,
+ ml_get_save_id,
+
+ ml_has_get_node_by_id,
+ ml_get_node_by_id,
+
+ ml_tree_sort_value_at,
+ ml_tree_value_at,
+ ml_tree_set_value_at,
+ ml_tree_is_cell_editable,
+
+ ml_duplicate_value,
+ ml_free_value,
+ ml_initialize_value,
+ ml_value_is_empty,
+ ml_value_to_string,
+
+ message_list);
+
message_list->normalised_hash = g_hash_table_new_full (
g_str_hash, g_str_equal,
(GDestroyNotify) NULL,
@@ -2884,35 +2909,7 @@ message_list_construct (MessageList *message_list)
gchar *etspecfile;
GSettings *settings;
- message_list->model =
- e_tree_memory_callbacks_new (
- ml_tree_icon_at,
-
- ml_column_count,
-
- ml_has_save_id,
- ml_get_save_id,
-
- ml_has_get_node_by_id,
- ml_get_node_by_id,
-
- ml_tree_sort_value_at,
- ml_tree_value_at,
- ml_tree_set_value_at,
- ml_tree_is_cell_editable,
-
- ml_duplicate_value,
- ml_free_value,
- ml_initialize_value,
- ml_value_is_empty,
- ml_value_to_string,
-
- message_list);
-
settings = g_settings_new ("org.gnome.evolution.mail");
- e_tree_memory_set_expanded_default (
- E_TREE_MEMORY (message_list->model),
- g_settings_get_boolean (settings, "thread-expand"));
message_list->priv->thread_latest =
g_settings_get_boolean (settings, "thread-latest");
g_object_unref (settings);