aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-10-24 03:44:04 +0800
committerChris Lahey <clahey@src.gnome.org>2000-10-24 03:44:04 +0800
commit46b30bb1be3c8b8bbd506bcc49fd732e2121e14f (patch)
tree003bfd408a3f4dd45a0ea927b29aaf8b29d7f4e4 /mail
parentaf5fc4f982fb82bbcee445d7368ebd714bebdae3 (diff)
downloadgsoc2013-evolution-46b30bb1be3c8b8bbd506bcc49fd732e2121e14f.tar.gz
gsoc2013-evolution-46b30bb1be3c8b8bbd506bcc49fd732e2121e14f.tar.zst
gsoc2013-evolution-46b30bb1be3c8b8bbd506bcc49fd732e2121e14f.zip
Fixed a possible error in row numberings. This needs to be changed quite a
2000-10-23 Christopher James Lahey <clahey@helixcode.com> * message-list.c: Fixed a possible error in row numberings. This needs to be changed quite a bit anyway, but this should make things slightly nicer in some cases. svn path=/trunk/; revision=6128
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/message-list.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index d73d53a68f..770d4edf4a 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,11 @@
2000-10-23 Christopher James Lahey <clahey@helixcode.com>
+ * message-list.c: Fixed a possible error in row numberings. This
+ needs to be changed quite a bit anyway, but this should make
+ things slightly nicer in some cases.
+
+2000-10-23 Christopher James Lahey <clahey@helixcode.com>
+
* folder-browser.c: Made the top of the folder browser a little
prettier.
diff --git a/mail/message-list.c b/mail/message-list.c
index c688456474..64ec31837d 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -1308,7 +1308,7 @@ build_subtree (MessageList *ml, ETreePath *parent, struct _container *c, int *ro
while (c) {
if (c->message) {
id = g_strdup_printf("uid:%s", c->message->uid);
- g_hash_table_insert(ml->uid_rowmap, g_strdup (c->message->uid), GINT_TO_POINTER ((*row)++));
+ g_hash_table_insert(ml->uid_rowmap, g_strdup (c->message->uid), GINT_TO_POINTER (*row));
if (c->child) {
if (c->message && c->message->message_id)
expanded = !g_hash_table_lookup(expanded_nodes, c->message->message_id) != 0;
@@ -1322,6 +1322,7 @@ build_subtree (MessageList *ml, ETreePath *parent, struct _container *c, int *ro
}
}
node = e_tree_model_node_insert(tree, parent, 0, id);
+ (*row) ++;
if (c->child) {
/* by default, open all trees */
if (expanded)