cedric pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=dcfa337b8a4fb942341cba126bbe076775ab2ac6
commit dcfa337b8a4fb942341cba126bbe076775ab2ac6 Author: Cedric BAIL <ced...@osg.samsung.com> Date: Wed Mar 9 16:14:00 2016 -0800 config: add API to configure Elm_Web backend. --- src/lib/elm_config.c | 14 +++++++++++++- src/lib/elm_config.h | 27 ++++++++++++++++++++++++++- 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c index bf5a3a3..2176432 100644 --- a/src/lib/elm_config.c +++ b/src/lib/elm_config.c @@ -4111,13 +4111,25 @@ elm_config_transition_duration_factor_set(double factor) edje_transition_duration_factor_set(_elm_config->transition_duration_factor); } - EAPI double elm_config_transition_duration_factor_get(void) { return _elm_config->transition_duration_factor; } +EAPI void +elm_config_web_backend_set(const char *backend) +{ + if (_elm_web_init(backend)) + _elm_config->web_backend = backend; +} + +EAPI const char * +elm_config_web_backend_get(void) +{ + return _elm_config->web_backend; +} + void _elm_config_profile_set(const char *profile) { diff --git a/src/lib/elm_config.h b/src/lib/elm_config.h index 746a171..0283dfc 100644 --- a/src/lib/elm_config.h +++ b/src/lib/elm_config.h @@ -2079,6 +2079,31 @@ EAPI void elm_config_transition_duration_factor_set(double factor); EAPI double elm_config_transition_duration_factor_get(void); /** - * @} + * Set the backend engine used by Elm_Web widget + * + * This function set the name of the external module used by + * elm_web to render web page. + * + * @param backend The new backend to use. + * + * @since 1.18 + * @see elm_config_web_backend_get() */ +EAPI void elm_config_web_backend_set(const char *backend); +/** + * Get the currently set backend engine used by Elm_Web widget + * + * This function get the name of the external module used by + * elm_web to render web page. + * + * @return The new backend to use. + * + * @since 1.18 + * @see elm_config_web_backend_set() + */ +EAPI const char *elm_config_web_backend_get(void); + +/** + * @} + */ --