actually save aspell config. no one tried that before?

use new config check utility functions


SVN revision: 48744
This commit is contained in:
Hannes Janetzek 2010-05-11 00:01:24 +00:00
parent bbe3d91149
commit 0727615962
4 changed files with 6 additions and 4 deletions

View File

@ -1159,7 +1159,7 @@ _conf_init(E_Module *m)
if (_conf)
{
if (!evry_util_module_config_check
if (!e_util_module_config_check
(_("Everything Applications"), _conf->version,
MOD_CONFIG_FILE_EPOCH, MOD_CONFIG_FILE_VERSION))
{

View File

@ -693,6 +693,7 @@ e_modapi_shutdown(E_Module *m)
EAPI int
e_modapi_save(E_Module *m)
{
e_config_domain_save(_config_domain, _conf_edd, _conf);
return 1;
}

View File

@ -4,7 +4,7 @@
#ifndef 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_VERSION \
((MOD_CONFIG_FILE_EPOCH << 16) | MOD_CONFIG_FILE_GENERATION)

View File

@ -1564,8 +1564,9 @@ _conf_init(E_Module *m)
_conf = e_config_domain_load("module.everything-files", conf_edd);
if (_conf && !evry_util_module_config_check(_("Everything Files"), _conf->version,
MOD_CONFIG_FILE_EPOCH, MOD_CONFIG_FILE_VERSION))
if (_conf && !e_util_module_config_check
(_("Everything Files"), _conf->version,
MOD_CONFIG_FILE_EPOCH, MOD_CONFIG_FILE_VERSION))
_conf_free();
if (!_conf) _conf_new();