diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-09-02 10:00:15 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-09-02 10:00:15 +0000 |
commit | 67fecb1232183bad2ac2eec436c8affd4c3e49f7 (patch) | |
tree | 7a409a06ecffc8de96d9e2d2a47c5fb256c54c1d /src/prefs_filter.c | |
parent | cbc9395569bb7c7b51079ab3cb0db1d36345f03c (diff) |
moved two functions from prefs_filter.c to filter.c.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@543 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/prefs_filter.c')
-rw-r--r-- | src/prefs_filter.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/prefs_filter.c b/src/prefs_filter.c index fbda86ac..66a35778 100644 --- a/src/prefs_filter.c +++ b/src/prefs_filter.c @@ -360,43 +360,6 @@ static void prefs_filter_create(void) rule_list_window.msg_hdr_table = NULL; } -void prefs_filter_rename_path(const gchar *old_path, const gchar *new_path) -{ - GSList *cur; - - g_return_if_fail(old_path != NULL); - g_return_if_fail(new_path != NULL); - - for (cur = prefs_common.fltlist; cur != NULL; cur = cur->next) { - FilterRule *rule = (FilterRule *)cur->data; - filter_rule_rename_dest_path(rule, old_path, new_path); - } - - filter_write_config(); -} - -void prefs_filter_delete_path(const gchar *path) -{ - GSList *cur; - GSList *next; - - g_return_if_fail(path != NULL); - - for (cur = prefs_common.fltlist; cur != NULL; cur = next) { - FilterRule *rule = (FilterRule *)cur->data; - next = cur->next; - - filter_rule_delete_action_by_dest_path(rule, path); - if (!rule->action_list) { - prefs_common.fltlist = - g_slist_remove(prefs_common.fltlist, rule); - filter_rule_free(rule); - } - } - - filter_write_config(); -} - static void prefs_filter_set_dialog(void) { GSList *cur; |