From ad59740f15a44999e3da126c49bdca09d8b7a61b Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 9 Dec 2005 07:59:11 +0000 Subject: prefs_filter_edit_cond_hbox_to_cond(): added an argument for case sensitivity. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@813 ee746299-78ed-0310-b773-934348b2243d --- src/prefs_filter_edit.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/prefs_filter_edit.c') diff --git a/src/prefs_filter_edit.c b/src/prefs_filter_edit.c index f5a80496..52821448 100644 --- a/src/prefs_filter_edit.c +++ b/src/prefs_filter_edit.c @@ -1579,6 +1579,7 @@ static void prefs_filter_edit_edit_header_list(FilterCondEdit *cond_edit) } FilterCond *prefs_filter_edit_cond_hbox_to_cond(CondHBox *hbox, + gboolean case_sens, gchar **error_msg) { FilterCond *cond = NULL; @@ -1631,6 +1632,9 @@ FilterCond *prefs_filter_edit_cond_hbox_to_cond(CondHBox *hbox, break; } + if (case_sens) + match_flag |= FLT_CASE_SENS; + switch (cond_menu_type) { case PF_COND_HEADER: header_name = g_object_get_data @@ -1794,7 +1798,8 @@ static FilterRule *prefs_filter_edit_dialog_to_rule(void) CondHBox *hbox = (CondHBox *)cur->data; FilterCond *cond; - cond = prefs_filter_edit_cond_hbox_to_cond(hbox, &error_msg); + cond = prefs_filter_edit_cond_hbox_to_cond(hbox, FALSE, + &error_msg); if (cond) cond_list = g_slist_append(cond_list, cond); else { -- cgit v1.2.3