diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-12-22 06:58:44 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-12-22 06:58:44 +0000 |
commit | d80a3b56dd4f6cf9a16510402b9122a75116b90c (patch) | |
tree | b38c11535d6609e02ed670afc5616341afd4b838 /src/summaryview.c | |
parent | e86d3c6ac6d6f59a66743c5b86ca9f5a8e9b20e6 (diff) |
select activated message on search dialog in summary view if possible.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@852 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/summaryview.c')
-rw-r--r-- | src/summaryview.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/summaryview.c b/src/summaryview.c index 50562742..bc7e2588 100644 --- a/src/summaryview.c +++ b/src/summaryview.c @@ -1302,6 +1302,23 @@ void summary_select_by_msgnum(SummaryView *summaryview, guint msgnum) summary_select_row(summaryview, &iter, FALSE, TRUE); } +gboolean summary_select_by_msginfo(SummaryView *summaryview, MsgInfo *msginfo) +{ + GtkTreeIter iter; + + if (summaryview->folder_item != msginfo->folder) + return FALSE; + + if (summary_find_msg_by_msgnum(summaryview, msginfo->msgnum, &iter)) { + summary_select_row(summaryview, &iter, + messageview_is_visible(summaryview->messageview), + TRUE); + return TRUE; + } + + return FALSE; +} + /** * summary_select_row: * @summaryview: Summary view. |