forked from enlightenment/efl
parent
dff632179b
commit
0b7284feb7
|
@ -201,6 +201,9 @@ ecore_config_file_save(char *file)
|
||||||
next = next->next;
|
next = next->next;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tmp = NULL;
|
||||||
|
|
||||||
switch (next->type)
|
switch (next->type)
|
||||||
{
|
{
|
||||||
case PT_INT:
|
case PT_INT:
|
||||||
|
@ -210,28 +213,24 @@ ecore_config_file_save(char *file)
|
||||||
e_db_float_set(db, next->key, ecore_config_float_get(next->key));
|
e_db_float_set(db, next->key, ecore_config_float_get(next->key));
|
||||||
break;
|
break;
|
||||||
case PT_RGB:
|
case PT_RGB:
|
||||||
if ((tmp = ecore_config_rgbstr_get(next->key))) {
|
tmp = ecore_config_rgbstr_get(next->key);
|
||||||
e_db_str_set(db, next->key, tmp);
|
|
||||||
free(tmp);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case PT_STR:
|
case PT_STR:
|
||||||
if ((tmp = ecore_config_string_get(next->key))) {
|
tmp = ecore_config_string_get(next->key);
|
||||||
e_db_str_set(db, next->key, tmp);
|
|
||||||
free(tmp);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case PT_THM:
|
case PT_THM:
|
||||||
if ((tmp = ecore_config_theme_get(next->key))) {
|
tmp = ecore_config_theme_get(next->key);
|
||||||
e_db_str_set(db, next->key, tmp);
|
|
||||||
free(tmp);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case PT_NIL:
|
case PT_NIL:
|
||||||
/* currently we do nothing for undefined ojects */
|
/* currently we do nothing for undefined ojects */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tmp) {
|
||||||
|
e_db_str_set(db, next->key, tmp);
|
||||||
|
free(tmp);
|
||||||
|
}
|
||||||
|
|
||||||
next = next->next;
|
next = next->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue