aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-09 07:59:11 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-09 07:59:11 +0000
commitad59740f15a44999e3da126c49bdca09d8b7a61b (patch)
tree2d3e01573e4105d901b045984f2408410f809fc0 /src
parent238c849d9e18136563bb96f8ac1e9c6d42d7ed8b (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/prefs_filter_edit.c7
-rw-r--r--src/prefs_filter_edit.h1
2 files changed, 7 insertions, 1 deletions
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 {
diff --git a/src/prefs_filter_edit.h b/src/prefs_filter_edit.h
index 99f9b1ce..fd720fa2 100644
--- a/src/prefs_filter_edit.h
+++ b/src/prefs_filter_edit.h
@@ -160,6 +160,7 @@ void prefs_filter_edit_insert_cond_hbox (FilterCondEdit *cond_edit,
gint pos);
FilterCond *prefs_filter_edit_cond_hbox_to_cond (CondHBox *hbox,
+ gboolean case_sens,
gchar **error_msg);
#endif /* __PREFS_FILTER_EDIT_H__ */