void list_item_touch_handler5(void* data, Evas_Object* obj, void* event_info)
{
+ printf(">>>>>>>> motion activation ON (SET) \n");
+ system_settings_set_value_bool(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, 1/*ON*/);
+
bool enableMotion = false;;
- printf(">>>>>>>> motion activation (GET) \n");
int errorcode = system_settings_get_value_bool(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, &enableMotion);
-
+ printf(">>>>>>>> motion activation (GET TEST 1) -- %d - errorcode : %d \n", enableMotion, errorcode);
printf(">>>>>>>> motion activation ON (SET) \n");
- system_settings_set_value_bool(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, 1/*ON*/);
+ system_settings_set_value_bool(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, 0/*ON*/);
+
+ errorcode = system_settings_get_value_bool(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, &enableMotion);
+ printf(">>>>>>>> motion activation (GET TEST 2) -- %d - errorcode : %d \n", enableMotion, errorcode);
}
void list_item_touch_handler6(void* data, Evas_Object* obj, void* event_info)
int system_setting_vconf_get_value_bool(const char *vconf_key, bool *value)
{
- return vconf_get_bool(vconf_key, (int*)value);
+ int tempvalue = 0;
+ int ret = vconf_get_bool(vconf_key, &tempvalue);
+
+ if (tempvalue == 1)
+ {
+ *value = true;
+ }
+ else {
+ *value = false;
+ }
+ return ret;
}
int system_setting_vconf_get_value_double(const char *vconf_key, double *value)