aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-08-08 01:03:06 +0800
committerDan Winship <danw@src.gnome.org>2000-08-08 01:03:06 +0800
commit520d69a638ea90f6114a8a7ef296317d64b65393 (patch)
treed0ce75d6299340721cfeab4feb14aff37440fde3 /mail/mail-ops.c
parentfa019ac64631a7911d31f34747b2d72e7411015e (diff)
downloadgsoc2013-evolution-520d69a638ea90f6114a8a7ef296317d64b65393.tar
gsoc2013-evolution-520d69a638ea90f6114a8a7ef296317d64b65393.tar.gz
gsoc2013-evolution-520d69a638ea90f6114a8a7ef296317d64b65393.tar.bz2
gsoc2013-evolution-520d69a638ea90f6114a8a7ef296317d64b65393.tar.lz
gsoc2013-evolution-520d69a638ea90f6114a8a7ef296317d64b65393.tar.xz
gsoc2013-evolution-520d69a638ea90f6114a8a7ef296317d64b65393.tar.zst
gsoc2013-evolution-520d69a638ea90f6114a8a7ef296317d64b65393.zip
Clarify that the input row is a model row, and swap it to a view row when
* message-list.c (message_list_select): Clarify that the input row is a model row, and swap it to a view row when finding the next/previous row. (idle_select_row): Select view row 0, not model row 0. * mail-ops.c (select_first_unread): Start from view row 0, not model row 0. svn path=/trunk/; revision=4570
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index fd3500f250..aa0323e842 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -120,8 +120,11 @@ static void
select_first_unread (CamelFolder *folder, int type, gpointer data)
{
FolderBrowser *fb = data;
+ ETable *table = E_TABLE_SCROLLED (fb->message_list->etable)->table;
+ int mrow;
- message_list_select (fb->message_list, 0, MESSAGE_LIST_SELECT_NEXT,
+ mrow = e_table_view_to_model_row (table, 0);
+ message_list_select (fb->message_list, mrow, MESSAGE_LIST_SELECT_NEXT,
0, CAMEL_MESSAGE_SEEN);
}