aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-07-09 02:28:01 +0800
committerDan Winship <danw@src.gnome.org>2000-07-09 02:28:01 +0800
commit9933ddf368367e576f5de7045690a3c21da40583 (patch)
tree970e12edd6ef556511f614ff827a90f4ee0d9cdd /mail/message-list.c
parentf1b8cb078f610e99084a62a6dbcdd63c6e4967b9 (diff)
downloadgsoc2013-evolution-9933ddf368367e576f5de7045690a3c21da40583.tar
gsoc2013-evolution-9933ddf368367e576f5de7045690a3c21da40583.tar.gz
gsoc2013-evolution-9933ddf368367e576f5de7045690a3c21da40583.tar.bz2
gsoc2013-evolution-9933ddf368367e576f5de7045690a3c21da40583.tar.lz
gsoc2013-evolution-9933ddf368367e576f5de7045690a3c21da40583.tar.xz
gsoc2013-evolution-9933ddf368367e576f5de7045690a3c21da40583.tar.zst
gsoc2013-evolution-9933ddf368367e576f5de7045690a3c21da40583.zip
Fix Jeff's FIXME: This does get called with out-of-range data sometimes,
* message-list.c (get_message_info): Fix Jeff's FIXME: This does get called with out-of-range data sometimes, so we do need the check. Use e_table_model_row_count to get the actual right answer. svn path=/trunk/; revision=3976
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index 08d46ef93e..16171f6b3a 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -30,8 +30,6 @@
#include "art/tree-expanded.xpm"
#include "art/tree-unexpanded.xpm"
-#define d(x) x
-
/*
* Default sizes for the ETable display
*
@@ -89,23 +87,12 @@ get_message_info (MessageList *message_list, int row)
ETreePath *node;
char *uid;
- d(printf ("\t*** row = %d ***\n", row));
-#if 0
- /* FIXME: The reason this is commented out is because this is not a good
- safety check. Let me explain: Since we can have more rows than actual messages,
- the condition row >= [size] could fail beyond a certain point in the message
- list. We need a way to account for the "No item in this view" rows */
- if (row >= g_hash_table_size (message_list->uid_rowmap)) {
- d(printf ("\t*** max row = %d ***\n", g_hash_table_size (message_list->uid_rowmap)));
+ if (row >= e_table_model_row_count (message_list->table_model))
return NULL;
- }
-#endif
node = e_tree_model_node_at_row (model, row);
- d(printf ("\t*** node = %p ***\n", node));
g_return_val_if_fail (node != NULL, NULL);
uid = e_tree_model_node_get_data (model, node);
- d(printf ("\t*** uid = %s ***\n", uid));
g_return_val_if_fail (uid != NULL, NULL);
return camel_folder_get_message_info (message_list->folder, uid);