forked from enlightenment/enlightenment
actually save aspell config. no one tried that before?
use new config check utility functions SVN revision: 48744
This commit is contained in:
parent
bbe3d91149
commit
0727615962
|
@ -1159,7 +1159,7 @@ _conf_init(E_Module *m)
|
||||||
|
|
||||||
if (_conf)
|
if (_conf)
|
||||||
{
|
{
|
||||||
if (!evry_util_module_config_check
|
if (!e_util_module_config_check
|
||||||
(_("Everything Applications"), _conf->version,
|
(_("Everything Applications"), _conf->version,
|
||||||
MOD_CONFIG_FILE_EPOCH, MOD_CONFIG_FILE_VERSION))
|
MOD_CONFIG_FILE_EPOCH, MOD_CONFIG_FILE_VERSION))
|
||||||
{
|
{
|
||||||
|
|
|
@ -693,6 +693,7 @@ e_modapi_shutdown(E_Module *m)
|
||||||
EAPI int
|
EAPI int
|
||||||
e_modapi_save(E_Module *m)
|
e_modapi_save(E_Module *m)
|
||||||
{
|
{
|
||||||
|
e_config_domain_save(_config_domain, _conf_edd, _conf);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#ifndef E_MOD_MAIN_H
|
#ifndef E_MOD_MAIN_H
|
||||||
#define E_MOD_MAIN_H
|
#define E_MOD_MAIN_H
|
||||||
|
|
||||||
#define MOD_CONFIG_FILE_EPOCH 0x0003
|
#define MOD_CONFIG_FILE_EPOCH 0x0002
|
||||||
#define MOD_CONFIG_FILE_GENERATION 0x008d
|
#define MOD_CONFIG_FILE_GENERATION 0x008d
|
||||||
#define MOD_CONFIG_FILE_VERSION \
|
#define MOD_CONFIG_FILE_VERSION \
|
||||||
((MOD_CONFIG_FILE_EPOCH << 16) | MOD_CONFIG_FILE_GENERATION)
|
((MOD_CONFIG_FILE_EPOCH << 16) | MOD_CONFIG_FILE_GENERATION)
|
||||||
|
|
|
@ -1564,8 +1564,9 @@ _conf_init(E_Module *m)
|
||||||
|
|
||||||
_conf = e_config_domain_load("module.everything-files", conf_edd);
|
_conf = e_config_domain_load("module.everything-files", conf_edd);
|
||||||
|
|
||||||
if (_conf && !evry_util_module_config_check(_("Everything Files"), _conf->version,
|
if (_conf && !e_util_module_config_check
|
||||||
MOD_CONFIG_FILE_EPOCH, MOD_CONFIG_FILE_VERSION))
|
(_("Everything Files"), _conf->version,
|
||||||
|
MOD_CONFIG_FILE_EPOCH, MOD_CONFIG_FILE_VERSION))
|
||||||
_conf_free();
|
_conf_free();
|
||||||
|
|
||||||
if (!_conf) _conf_new();
|
if (!_conf) _conf_new();
|
||||||
|
|
Loading…
Reference in New Issue