aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-08-12 01:03:25 +0800
committerDan Winship <danw@src.gnome.org>2000-08-12 01:03:25 +0800
commit5d79af0da616d725eebfc15d100ee62ff18cb037 (patch)
treecfa9f4d731b12cbd28d4d3278a41252b46b1dca3 /mail/mail-callbacks.c
parentb32f025e59170847dbfa42238aa7d2c10983dc6a (diff)
downloadgsoc2013-evolution-5d79af0da616d725eebfc15d100ee62ff18cb037.tar.gz
gsoc2013-evolution-5d79af0da616d725eebfc15d100ee62ff18cb037.tar.zst
gsoc2013-evolution-5d79af0da616d725eebfc15d100ee62ff18cb037.zip
If the caller passes "-1" for the model row, translate that to view row 0.
* message-list.c (message_list_select): If the caller passes "-1" for the model row, translate that to view row 0. * message-list.c (idle_select_row): * mail-callbacks.c (select_first_unread): Use new message_list_select kludge^H^H^H^H^H^Hfeature svn path=/trunk/; revision=4743
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 7013fa7a65..77143c9258 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -73,10 +73,8 @@ select_first_unread (CamelFolder *folder, gpointer event_data, gpointer data)
{
FolderBrowser *fb = FOLDER_BROWSER (data);
ETable *table = E_TABLE_SCROLLED (fb->message_list->etable)->table;
- int mrow;
- mrow = e_table_view_to_model_row (table, 0);
- message_list_select (fb->message_list, mrow, MESSAGE_LIST_SELECT_NEXT,
+ message_list_select (fb->message_list, -1, MESSAGE_LIST_SELECT_NEXT,
0, CAMEL_MESSAGE_SEEN);
}