diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-10-01 17:59:30 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-10-01 17:59:30 +0000 |
commit | 889a082501e0d54dd2863c9fb2b3a5df4aabfb85 (patch) | |
tree | 63e1c3d257416fa137d27b6c51815ac1656f8061 /filters.h | |
parent | af410bce953d8118735403747fb58b890ac3e3ef (diff) |
Change the filter dialog (capture and display filters), so it has a real Cancel button now - the former Close button didn't reverted the changes done.
svn path=/trunk/; revision=19390
Diffstat (limited to 'filters.h')
-rw-r--r-- | filters.h | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -27,8 +27,10 @@ * Filter lists. */ typedef enum { - CFILTER_LIST, /* capture filter list */ - DFILTER_LIST /* display filter list */ + CFILTER_LIST, /* capture filter list - saved */ + DFILTER_LIST, /* display filter list - saved */ + CFILTER_EDITED_LIST, /* capture filter list - currently edited */ + DFILTER_EDITED_LIST /* display filter list - currently edited */ } filter_list_type_t; /* @@ -47,7 +49,7 @@ typedef struct { * the file we tried to read - it should be freed by our caller - * and "*errno_return" is set to the error. */ -void read_filter_list(filter_list_type_t list, char **pref_path_return, +void read_filter_list(filter_list_type_t list_type, char **pref_path_return, int *errno_return); /* @@ -75,5 +77,11 @@ void remove_from_filter_list(filter_list_type_t list, GList *fl_entry); * the file we tried to read - it should be freed by our caller - * and "*errno_return" is set to the error. */ -void save_filter_list(filter_list_type_t list, char **pref_path_return, +void save_filter_list(filter_list_type_t list_type, char **pref_path_return, int *errno_return); + +/* + * Clone the filter list so it can be edited. + */ +void copy_filter_list(filter_list_type_t dest_type, filter_list_type_t src_type); + |