diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-21 00:10:02 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-21 03:31:52 +0800 |
commit | 662c1a21bf74ebb4724612eea840a3dd810860b4 (patch) | |
tree | c92a38ec3c7276da692e960a5a6fb367fc498476 /mail | |
parent | 68b0b1022158a2442fffdd67820c1576adfdb9b0 (diff) | |
download | gsoc2013-evolution-662c1a21bf74ebb4724612eea840a3dd810860b4.tar gsoc2013-evolution-662c1a21bf74ebb4724612eea840a3dd810860b4.tar.gz gsoc2013-evolution-662c1a21bf74ebb4724612eea840a3dd810860b4.tar.bz2 gsoc2013-evolution-662c1a21bf74ebb4724612eea840a3dd810860b4.tar.lz gsoc2013-evolution-662c1a21bf74ebb4724612eea840a3dd810860b4.tar.xz gsoc2013-evolution-662c1a21bf74ebb4724612eea840a3dd810860b4.tar.zst gsoc2013-evolution-662c1a21bf74ebb4724612eea840a3dd810860b4.zip |
Remove e_tree_force_expanded_state().
Reducing API bloat. Do this instead:
adapter = e_tree_get_table_adapter (tree);
e_tree_table_adapter_force_expanded_state (adapter, state);
Diffstat (limited to 'mail')
-rw-r--r-- | mail/message-list.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index c6bde53bf8..ed3790181a 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -5421,10 +5421,15 @@ message_list_regen_done_cb (GObject *source_object, } if (forcing_expand_state || searching) { + gint state; + if (message_list->expand_all || searching) - e_tree_force_expanded_state (tree, 1); + state = 1; /* force expand */ else - e_tree_force_expanded_state (tree, -1); + state = -1; /* force collapse */ + + e_tree_table_adapter_force_expanded_state ( + adapter, state); } /* Show the cursor unless we're responding to a @@ -5446,8 +5451,8 @@ message_list_regen_done_cb (GObject *source_object, save_tree_state ( message_list, regen_data->folder); - /* do not forget to set this back to use the default value... */ - e_tree_force_expanded_state (tree, 0); + /* Disable forced expand/collapse state. */ + e_tree_table_adapter_force_expanded_state (adapter, 0); } else { load_tree_state ( message_list, |