static E_Config_DD *_conf_edd;
-static void
+static Eina_Bool
_e_mod_config_new(void)
{
_e_mod_config = E_NEW(Gestures_Config, 1);
+ if (!_e_mod_config) return EINA_FALSE;
_e_mod_config->one_finger_flick_min_length = 100;
_e_mod_config->one_finger_flick_max_time = 400;
_e_mod_config->one_finger_tap_radius = 100;
_e_mod_config->two_finger_flick_to_scroll_timeout = 100;
_e_mod_config->two_finger_flick_to_scroll_min_length = 50;
+
+ return EINA_TRUE;
}
int _e_mod_atspi_config_init(void)
if (!_e_mod_config)
{
- _e_mod_config_new();
+ if (!_e_mod_config_new())
+ {
+ ERROR("Could not create module config.");
+ return 1;
+ }
+
_e_mod_atspi_config_save();
INFO("New config file for e-mod-tizen-screen-reader module created.");
}