From 7ea7aa0b494b5e0ed009c5b5475024fd472c8a31 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 27 Mar 2008 11:45:36 +0000 Subject: ** Fix for bug #519292 2008-03-27 Milan Crha ** 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 --- mail/ChangeLog | 10 ++++++++++ mail/message-list.c | 15 ++------------- mail/message-list.h | 1 - 3 files changed, 12 insertions(+), 14 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 053cf113a8..f953bfcb32 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,13 @@ +2008-03-27 Milan Crha + + ** 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 ** Fix for bug #502826 (original patch by nickspoon0) 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 @@ -3545,17 +3545,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) { @@ -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); -- cgit v1.2.3