diff options
author | Milan Crha <mcrha@redhat.com> | 2008-03-27 19:45:36 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2008-03-27 19:45:36 +0800 |
commit | 7ea7aa0b494b5e0ed009c5b5475024fd472c8a31 (patch) | |
tree | 16777114a3984973f58bacc34ce6312e8834d22f /mail | |
parent | c11807e2eb67c3fbacd54403fc2982ee2f411fac (diff) | |
download | gsoc2013-evolution-7ea7aa0b494b5e0ed009c5b5475024fd472c8a31.tar.gz gsoc2013-evolution-7ea7aa0b494b5e0ed009c5b5475024fd472c8a31.tar.zst gsoc2013-evolution-7ea7aa0b494b5e0ed009c5b5475024fd472c8a31.zip |
** Fix for bug #519292
2008-03-27 Milan Crha <mcrha@redhat.com>
** Fix for bug #519292
* mail/message-list.h: (message_list_set_expand_all):
* mail/message-list.c: (message_list_set_expand_all):
Remove unused confusing function.
* mail/message-list.c: (regen_list_done):
Use numbers instead of gboolean value.
* widgets/table/e-tree-table-adapter.c: (set_expanded_state_func),
(set_collapsed_state_func): Use rather recurse function.
svn path=/trunk/; revision=35271
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 10 | ||||
-rw-r--r-- | mail/message-list.c | 15 | ||||
-rw-r--r-- | mail/message-list.h | 1 |
3 files changed, 12 insertions, 14 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 053cf113a8..f953bfcb32 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,15 @@ 2008-03-27 Milan Crha <mcrha@redhat.com> + ** Part of fix for bug #519292 + + * message-list.h: (message_list_set_expand_all): + * message-list.c: (message_list_set_expand_all): + Remove unused confusing function. + * message-list.c: (regen_list_done): + Use numbers instead of gboolean value. + +2008-03-27 Milan Crha <mcrha@redhat.com> + ** Fix for bug #502826 (original patch by nickspoon0) * mail-config.glade: diff --git a/mail/message-list.c b/mail/message-list.c index 374ad3bea0..b276e227e7 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -3546,17 +3546,6 @@ message_list_set_threaded (MessageList *ml, gboolean threaded) } void -message_list_set_expand_all (MessageList *ml, gboolean threaded) -{ - if (ml->threaded != threaded) { - ml->threaded = threaded; - - if (ml->frozen == 0) - mail_regen_list (ml, ml->search, NULL, NULL); - } -} - -void message_list_set_hidedeleted (MessageList *ml, gboolean hidedeleted) { if (ml->hidedeleted != hidedeleted) { @@ -4062,8 +4051,8 @@ regen_list_done (struct _regen_list_msg *m) else load_tree_state (m->ml); - m->ml->expand_all = FALSE; - m->ml->collapse_all = FALSE; + m->ml->expand_all = 0; + m->ml->collapse_all = 0; } else build_flat (m->ml, m->summary, m->changes); diff --git a/mail/message-list.h b/mail/message-list.h index 147d76955d..806c0e2417 100644 --- a/mail/message-list.h +++ b/mail/message-list.h @@ -219,7 +219,6 @@ void message_list_set_threaded (MessageList *ml, gboolean threaded); void message_list_set_threaded_expand_all (MessageList *ml); void message_list_set_threaded_collapse_all (MessageList *ml); -void message_list_set_expand_all (MessageList *ml, gboolean threaded); void message_list_set_hidedeleted (MessageList *ml, gboolean hidedeleted); void message_list_set_search (MessageList *ml, const char *search); |