aboutsummaryrefslogtreecommitdiff
path: root/src/prefs_filter.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-09-26 06:11:11 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-09-26 06:11:11 +0000
commit2569f2416f350e29ff414671b74f2524fa883113 (patch)
tree73665a52ff8ae74186082d7733374f88a3495522 /src/prefs_filter.c
parentf8c3b6a8f6f9bf86ea02fb8220d24cccf6520869 (diff)
use target header field as a default filter name when creating filter rule automatically.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2042 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/prefs_filter.c')
-rw-r--r--src/prefs_filter.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/prefs_filter.c b/src/prefs_filter.c
index a8ca55c9..59a20acb 100644
--- a/src/prefs_filter.c
+++ b/src/prefs_filter.c
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2008 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
@@ -126,7 +126,7 @@ static gboolean prefs_filter_key_pressed(GtkWidget *widget,
static void prefs_filter_close (void);
-void prefs_filter_open(MsgInfo *msginfo, const gchar *header)
+void prefs_filter_open(MsgInfo *msginfo, const gchar *header, const gchar *key)
{
inc_lock();
@@ -146,7 +146,7 @@ void prefs_filter_open(MsgInfo *msginfo, const gchar *header)
if (msginfo) {
FilterRule *rule;
- rule = prefs_filter_edit_open(NULL, header);
+ rule = prefs_filter_edit_open(NULL, header, key);
gtk_window_present(GTK_WINDOW(rule_list_window.window));
if (rule) {
@@ -614,7 +614,7 @@ static void prefs_filter_add_cb(void)
{
FilterRule *rule;
- rule = prefs_filter_edit_open(NULL, NULL);
+ rule = prefs_filter_edit_open(NULL, NULL, NULL);
gtk_window_present(GTK_WINDOW(rule_list_window.window));
if (rule) {
@@ -636,7 +636,7 @@ static void prefs_filter_edit_cb(void)
COL_FILTER_RULE, &rule, -1);
g_return_if_fail(rule != NULL);
- new_rule = prefs_filter_edit_open(rule, NULL);
+ new_rule = prefs_filter_edit_open(rule, NULL, NULL);
gtk_window_present(GTK_WINDOW(rule_list_window.window));
if (new_rule) {
@@ -658,7 +658,7 @@ static void prefs_filter_copy_cb(void)
COL_FILTER_RULE, &rule, -1);
g_return_if_fail(rule != NULL);
- new_rule = prefs_filter_edit_open(rule, NULL);
+ new_rule = prefs_filter_edit_open(rule, NULL, NULL);
gtk_window_present(GTK_WINDOW(rule_list_window.window));
if (new_rule) {