static bool font_config_set(char *font_name);
static void font_config_set_notification();
+int _is_file_accessible(const char *path);
+int __is_available_font(char *font_name);
/**
* VCONFKEY_SETAPPL_CALL_RINGTONE_PATH_STR has a path of the ringtone file which user choose
if (!file_path) return false;
int ret = false;
- if (ret = regcomp(&fsm, PATH_EXT_CHECK_REG, REG_ICASE | REG_EXTENDED)) {
+ if ((ret = regcomp(&fsm, PATH_EXT_CHECK_REG, REG_ICASE | REG_EXTENDED))) {
SETTING_TRACE("regular expresstion fail");
return 1;
}
int r = 0;
pkgmgrinfo_appinfo_h handle;
- char *apptype = NULL;
r = pkgmgrinfo_appinfo_get_appinfo(vconf_value, &handle);
if (r != PMINFO_R_OK) {
SETTING_TRACE("*** pkginfo failed ");
FcObjectSet *os = NULL;
FcFontSet *fs = NULL;
FcPattern *pat = NULL;
- Eina_List *list = NULL;
FcConfig *font_config = NULL;
int ret = 0;
/* I will set english as default family language. */
/* If there is no proper family language for current locale, */
/* we have to show the english family name. */
- if (!strcmp(lang, "en")) {
+ if (!strcmp((char*)lang, "en")) {
family_result = (char *)family;
}
id++;
{
SETTING_TRACE_BEGIN;
int font_size = -1;
- int err = -1;
int vconf_value = -1;
if (system_setting_vconf_get_value_int(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE, &vconf_value)) {
/* parsing validation */
/* en_US.UTF-8 */
char arr[20];
- snprintf(arr, 20, vconf_value);
+ snprintf(arr, 20, "%s", vconf_value);
arr[5] = '\0';
*value = strdup(arr);
free(vconf_value);
/* parsing validation */
/* en_US.UTF-8 */
char arr[20];
- snprintf(arr, 20, vconf_value);
+ snprintf(arr, 20, "%s", vconf_value);
arr[5] = '\0';
*value = strdup(arr);
free(vconf_value);
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
- bool ret_value;
+ bool ret_value = true;
if (vconf_value == VCONFKEY_TIME_FORMAT_12)
ret_value = false;
else if (vconf_value == VCONFKEY_TIME_FORMAT_24)
}
};
+#if 0
static void _dump_context()
{
int i;
/*int max = SYSTEM_SETTINGS_MAX; */
int max = sizeof(system_setting_table) / sizeof(system_setting_s) - 1 ;
- for (i = 0; i < 27; i++) {
+ for (i = 0; i < max; i++) {
LOGE("[%s] system_setting_table[i].key = %d", __FUNCTION__, system_setting_table[i].key);
LOGE("[%s] system_setting_table[i].data_type = %d", __FUNCTION__, system_setting_table[i].data_type);
LOGE("[%s] system_setting_table[i].get_value_cb = %x", __FUNCTION__, system_setting_table[i].get_value_cb);
LOGE("[%s] system_setting_table[i].changed_cb = %x", __FUNCTION__, system_setting_table[i].changed_cb);
}
}
+#endif
static int _dump_context_node(int key)
{