From 04e39b4605146e09a9ae8b977b2f453336f1eab6 Mon Sep 17 00:00:00 2001 From: hiro Date: Thu, 18 Jan 2007 05:08:51 +0000 Subject: added the option 'Filter new messages in INBOX on receiving'. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1496 ee746299-78ed-0310-b773-934348b2243d --- src/prefs_account_dialog.c | 15 +++++++++++---- src/prefs_account_dialog.h | 2 +- src/textview.c | 2 +- src/textview.h | 2 +- 4 files changed, 14 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/prefs_account_dialog.c b/src/prefs_account_dialog.c index 77b8b63d..6dcc9576 100644 --- a/src/prefs_account_dialog.c +++ b/src/prefs_account_dialog.c @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2006 Hiroyuki Yamamoto + * Copyright (C) 1999-2007 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -97,6 +97,7 @@ static struct Receive { GtkWidget *imap_frame; GtkWidget *imap_auth_type_optmenu; GtkWidget *imap_check_inbox_chkbtn; + GtkWidget *imap_filter_inbox_chkbtn; GtkWidget *nntp_frame; GtkWidget *maxarticle_spinbtn; @@ -267,6 +268,8 @@ static PrefsUIData ui_data[] = { prefs_set_data_from_entry, prefs_set_entry}, {"imap_check_inbox_only", &receive.imap_check_inbox_chkbtn, prefs_set_data_from_toggle, prefs_set_toggle}, + {"imap_filter_inbox_on_receive", &receive.imap_filter_inbox_chkbtn, + prefs_set_data_from_toggle, prefs_set_toggle}, {"imap_auth_method", &receive.imap_auth_type_optmenu, prefs_account_imap_auth_type_set_data_from_optmenu, prefs_account_imap_auth_type_set_optmenu}, @@ -839,6 +842,7 @@ static void prefs_account_receive_create(void) GtkWidget *optmenu_menu; GtkWidget *menuitem; GtkWidget *imap_check_inbox_chkbtn; + GtkWidget *imap_filter_inbox_chkbtn; GtkWidget *nntp_frame; GtkWidget *maxarticle_label; @@ -991,6 +995,8 @@ static void prefs_account_receive_create(void) PACK_CHECK_BUTTON (vbox2, imap_check_inbox_chkbtn, _("Only check INBOX on receiving")); + PACK_CHECK_BUTTON (vbox2, imap_filter_inbox_chkbtn, + _("Filter new messages in INBOX on receiving")); PACK_FRAME (vbox1, nntp_frame, _("News")); @@ -1039,9 +1045,10 @@ static void prefs_account_receive_create(void) receive.inbox_entry = inbox_entry; receive.inbox_btn = inbox_btn; - receive.imap_frame = imap_frame; - receive.imap_auth_type_optmenu = optmenu; - receive.imap_check_inbox_chkbtn = imap_check_inbox_chkbtn; + receive.imap_frame = imap_frame; + receive.imap_auth_type_optmenu = optmenu; + receive.imap_check_inbox_chkbtn = imap_check_inbox_chkbtn; + receive.imap_filter_inbox_chkbtn = imap_filter_inbox_chkbtn; receive.nntp_frame = nntp_frame; receive.maxarticle_spinbtn = maxarticle_spinbtn; diff --git a/src/prefs_account_dialog.h b/src/prefs_account_dialog.h index 2a95d495..0fbea98d 100644 --- a/src/prefs_account_dialog.h +++ b/src/prefs_account_dialog.h @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2006 Hiroyuki Yamamoto + * Copyright (C) 1999-2007 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/textview.c b/src/textview.c index 051e8f3a..f19925ff 100644 --- a/src/textview.c +++ b/src/textview.c @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2006 Hiroyuki Yamamoto + * Copyright (C) 1999-2007 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/textview.h b/src/textview.h index 57382d39..52fa98db 100644 --- a/src/textview.h +++ b/src/textview.h @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2005 Hiroyuki Yamamoto + * Copyright (C) 1999-2007 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by -- cgit v1.2.3