diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-02 03:06:26 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-02 22:34:12 +0800 |
commit | 7329de1078e5fbb71ab4dc7315f8f14b5956cc92 (patch) | |
tree | c47d8f14d0a1fe0c34e808b007f6eb1d7ba78b56 | |
parent | be45fdaa0fef4672c1809ad4735f1b343835511f (diff) | |
download | gsoc2013-evolution-7329de1078e5fbb71ab4dc7315f8f14b5956cc92.tar.gz gsoc2013-evolution-7329de1078e5fbb71ab4dc7315f8f14b5956cc92.tar.zst gsoc2013-evolution-7329de1078e5fbb71ab4dc7315f8f14b5956cc92.zip |
e-mail-reader-utils.c: Avoid e_tree_get_state().
Use e_tree_get_state_object() and e_tree_set_state_object() instead to
transfer state info from one ETree instance to another.
-rw-r--r-- | mail/e-mail-reader-utils.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c index b50a06b42e..5fb7c64f51 100644 --- a/mail/e-mail-reader-utils.c +++ b/mail/e-mail-reader-utils.c @@ -779,7 +779,7 @@ copy_tree_state (EMailReader *src_reader, EMailReader *des_reader) { GtkWidget *src_mlist, *des_mlist; - gchar *state; + ETableState *state; g_return_if_fail (src_reader != NULL); g_return_if_fail (des_reader != NULL); @@ -792,10 +792,9 @@ copy_tree_state (EMailReader *src_reader, if (!des_mlist) return; - state = e_tree_get_state (E_TREE (src_mlist)); - if (state) - e_tree_set_state (E_TREE (des_mlist), state); - g_free (state); + state = e_tree_get_state_object (E_TREE (src_mlist)); + e_tree_set_state_object (E_TREE (des_mlist), state); + g_object_unref (state); message_list_set_search (MESSAGE_LIST (des_mlist), MESSAGE_LIST (src_mlist)->search); } |