aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-option.h
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-12-06 03:20:28 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-12-06 03:20:28 +0800
commit7b221ebc07a7867c3528b113e82f25a01816a015 (patch)
tree975f1efd25565d3fd930c935fabeb10ec5b866da /filter/filter-option.h
parent888965285486dbe274238c1b6062ed89986676a8 (diff)
downloadgsoc2013-evolution-7b221ebc07a7867c3528b113e82f25a01816a015.tar.gz
gsoc2013-evolution-7b221ebc07a7867c3528b113e82f25a01816a015.tar.zst
gsoc2013-evolution-7b221ebc07a7867c3528b113e82f25a01816a015.zip
** Fix for bug #332629
2008-12-05 Milan Crha <mcrha@redhat.com> ** Fix for bug #332629 * filter/filter-option.h: (struct _filter_option), (struct _FilterOption), (filter_option_add): * filter/filter-option.c: (filter_option_init), (filter_option_finalise), (filter_option_add), (xml_create), (get_widget), (clone): Be able to define optionlist with dynamically created list of options. * filter/filter-label.c: (fill_options): Adapt. * addressbook/gui/widgets/addresstypes.xml: * calendar/gui/caltypes.xml: * calendar/gui/memotypes.xml: * calendar/gui/tasktypes.xml: Use dynamically created list of categories in the option's widget. svn path=/trunk/; revision=36836
Diffstat (limited to 'filter/filter-option.h')
-rw-r--r--filter/filter-option.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/filter/filter-option.h b/filter/filter-option.h
index 8cc6c052d4..6cf56645b8 100644
--- a/filter/filter-option.h
+++ b/filter/filter-option.h
@@ -40,6 +40,8 @@ struct _filter_option {
char *title; /* button title */
char *value; /* value, if it has one */
char *code; /* used to string code segments together */
+
+ gboolean is_dynamic; /* whether is the option dynamic, FALSE if static */
};
struct _FilterOption {
@@ -49,6 +51,7 @@ struct _FilterOption {
GList *options;
struct _filter_option *current;
+ char *dynamic_func; /* name of the dynamic fill func, called in get_widget */
};
struct _FilterOptionClass {
@@ -66,7 +69,7 @@ FilterOption *filter_option_new (void);
void filter_option_set_current (FilterOption *option, const char *name);
const char *filter_option_get_current (FilterOption *option);
-struct _filter_option *filter_option_add (FilterOption *fo, const char *name, const char *title, const char *code);
+struct _filter_option *filter_option_add (FilterOption *fo, const char *name, const char *title, const char *code, gboolean is_dynamic);
void filter_option_remove_all (FilterOption *fo);
#endif /* ! _FILTER_OPTION_H */