diff options
author | Not Zed <NotZed@Ximian.com> | 2004-10-12 15:38:28 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-10-12 15:38:28 +0800 |
commit | b084903dddf3d529781b5acd29f6623fef64f50f (patch) | |
tree | a74f71bf1d02e27dbe1df853c30872964a71328c /e-util/e-config.h | |
parent | c9e20b967bb7e1b679f10cb9d388c94a95c3bf06 (diff) | |
download | gsoc2013-evolution-b084903dddf3d529781b5acd29f6623fef64f50f.tar.gz gsoc2013-evolution-b084903dddf3d529781b5acd29f6623fef64f50f.tar.zst gsoc2013-evolution-b084903dddf3d529781b5acd29f6623fef64f50f.zip |
(untested, it compiles!).
2004-10-12 Not Zed <NotZed@Ximian.com>
* e-config.c (ech_check, ech_config_factory, emph_construct_menu):
setup a "check" handler, page-check/validation callback.
svn path=/trunk/; revision=27551
Diffstat (limited to 'e-util/e-config.h')
-rw-r--r-- | e-util/e-config.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/e-util/e-config.h b/e-util/e-config.h index ce119f1e56..96a6a7025a 100644 --- a/e-util/e-config.h +++ b/e-util/e-config.h @@ -272,6 +272,7 @@ typedef struct _EPluginHookTargetMap EConfigHookTargetMap; typedef struct _EPluginHookTargetKey EConfigHookTargetMask; typedef struct _EConfigHookItemFactoryData EConfigHookItemFactoryData; +typedef struct _EConfigHookPageCheckData EConfigHookPageCheckData; typedef void (*EConfigHookFunc)(struct _EPlugin *plugin, EConfigTarget *target); typedef void (*EConfigHookItemFactoryFunc)(struct _EPlugin *plugin, EConfigHookItemFactoryData *data); @@ -301,6 +302,21 @@ struct _EConfigHookItemFactoryData { }; /** + * struct _EConfigHookPageCheckData - Check callback data. + * + * @config: + * @target: The current configuration target. This is also available + * on @config->target. + * @pageid: Name of page to validate, or "" means check all configuration. + * + **/ +struct _EConfigHookPageCheckData { + EConfig *config; + EConfigTarget *target; + const char *pageid; +}; + +/** * struct _EConfigHookGroup - A group of configuration items. * * @hook: Parent object. @@ -308,6 +324,7 @@ struct _EConfigHookItemFactoryData { * @target_type: The target type expected by the items. This is * defined by implementing classes. * @items: A list of EConfigHookItem's for this group. + * @check: A validate page handler. * @commit: The name of the commit function for this group of items, or NULL * for instant-apply configuration windows. Its format is plugin-type defined. * @abort: Similar to the @commit function but for aborting or @@ -321,6 +338,7 @@ struct _EConfigHookGroup { char *id; /* target menu id for these config items */ int target_type; /* target type of this group */ GSList *items; /* items to add to group */ + char *check; /* validate handler, if set */ char *commit; /* commit handler, if set */ char *abort; /* abort handler, if set */ }; |