aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-19 06:41:50 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-19 06:41:50 +0000
commitd55459c79d6ddfa0b006c5696d408a7e388cf8c8 (patch)
tree98e8ea35bfce5bc235adbc544de8aba1f754b8ac /src/mainwindow.c
parent1ca5b9aa126b860d9198f85e44104f857513bef5 (diff)
implemented query search and virtual folder (merged from newsearch branch).
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@836 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 19afdda3..d7f90d19 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -2758,9 +2758,12 @@ static void app_exit_cb(MainWindow *mainwin, guint action, GtkWidget *widget)
static void search_cb(MainWindow *mainwin, guint action, GtkWidget *widget)
{
- if (action == 1)
- summary_search(mainwin->summaryview);
- else
+ if (action == 1) {
+ FolderItem *item;
+
+ item = folderview_get_selected_item(mainwin->folderview);
+ summary_search(mainwin->summaryview, item);
+ } else
message_search(mainwin->messageview);
}