diff options
author | NotZed <NotZed@HelixCode.com> | 2000-02-22 18:09:07 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-02-22 18:09:07 +0800 |
commit | 7c6897ee95e4346e991185c014bcfce003809fd8 (patch) | |
tree | b34cb809263e9641c3311168c43b8977812e91be /filter/filter-arg.h | |
parent | 6b21505b40126e00636603c705b771e5c857beef (diff) | |
download | gsoc2013-evolution-7c6897ee95e4346e991185c014bcfce003809fd8.tar gsoc2013-evolution-7c6897ee95e4346e991185c014bcfce003809fd8.tar.gz gsoc2013-evolution-7c6897ee95e4346e991185c014bcfce003809fd8.tar.bz2 gsoc2013-evolution-7c6897ee95e4346e991185c014bcfce003809fd8.tar.lz gsoc2013-evolution-7c6897ee95e4346e991185c014bcfce003809fd8.tar.xz gsoc2013-evolution-7c6897ee95e4346e991185c014bcfce003809fd8.tar.zst gsoc2013-evolution-7c6897ee95e4346e991185c014bcfce003809fd8.zip |
New utility functions for working with the internal rule format.
2000-02-22 NotZed <NotZed@HelixCode.com>
* filter-xml.c (filter_clone_optionrule):
(filter_clone_optionrule_free):
(filter_optionrule_new_from_rule): New utility functions for
working with the internal rule format.
* filter-arg.[ch]: Added new callbacks for editing a single value,
and a new editor which shows all items in a list, and allows you
to edit them via the single-edit method. This needs some cleanup
for some unused/unusable virtual methods (edit_values,
write_html?).
* Makefile: Add the druid for build.
* filter-druid.c: A 'druid' widget for editing a single filter
rule.
svn path=/trunk/; revision=1901
Diffstat (limited to 'filter/filter-arg.h')
-rw-r--r-- | filter/filter-arg.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/filter/filter-arg.h b/filter/filter-arg.h index 95e7d1caea..bf9448a17a 100644 --- a/filter/filter-arg.h +++ b/filter/filter-arg.h @@ -44,11 +44,16 @@ struct _FilterArg { struct _FilterArgClass { GtkObjectClass parent_class; + /* make a copy of yourself */ + struct _FilterArg * (*clone)(FilterArg *arg); + /* virtual methods */ void (*write_html)(FilterArg *arg, GtkHTML *html, GtkHTMLStreamHandle *stream); void (*write_text)(FilterArg *arg, GString *string); void (*free_value)(FilterArg *arg, void *v); + void (*edit_values)(FilterArg *arg); + int (*edit_value)(FilterArg *arg, int index); void (*values_add_xml)(FilterArg *arg, xmlNodePtr node); xmlNodePtr (*values_get_xml)(FilterArg *arg); @@ -61,9 +66,11 @@ struct _FilterArgClass { guint filter_arg_get_type (void); FilterArg *filter_arg_new (char *name); +FilterArg *filter_arg_clone(FilterArg *arg); void filter_arg_value_add(FilterArg *a, void *v); void filter_arg_edit_values(FilterArg *arg); +int filter_arg_edit_value(FilterArg *arg, int index); xmlNodePtr filter_arg_values_get_xml(FilterArg *arg); void filter_arg_values_add_xml(FilterArg *arg, xmlNodePtr node); @@ -72,3 +79,4 @@ void *filter_arg_get_value(FilterArg *arg, int index); char *filter_arg_get_value_as_string(FilterArg *arg, int index); #endif /* ! _FILTER_ARG_H */ + |