[elm] Bumping config file as to accomodate for

prefs module new entry.




SVN revision: 79915
This commit is contained in:
Gustavo Lima Chaves 2012-11-30 16:52:13 +00:00
parent 6063c0dc5d
commit c8c5454d39
2 changed files with 24 additions and 2 deletions

View File

@ -1317,7 +1317,7 @@ _config_update(void)
{
/* weird profile or something? We should probably fill
* with hardcoded defaults, or get from default previx */
return;
return;
}
#define IFCFG(v) if ((_elm_config->config_version & 0xffff) < (v)) {
#define IFCFGELSE } else {
@ -1334,6 +1334,28 @@ _config_update(void)
COPYVAL(longpress_timeout);
IFCFGEND;
IFCFG(0x0004);
#define PREFS_IFACE_MODULE_STR "prefs>prefs_iface"
const char *new = NULL;
if (!_elm_config->modules)
new = eina_stringshare_add(PREFS_IFACE_MODULE_STR);
else
{
if (!strstr(_elm_config->modules, PREFS_IFACE_MODULE_STR))
new = eina_stringshare_printf
("%s:%s", orig_modules, PREFS_IFACE_MODULE_STR);
}
if (new)
{
eina_stringshare_del(_elm_config->modules);
_elm_config->modules = new;
}
IFCFGEND;
#undef COPYSTR
#undef COPYPTR
#undef COPYVAL

View File

@ -113,7 +113,7 @@ struct _Elm_Theme
* the users config doesn't need to be wiped - simply new values need
* to be put in
*/
#define ELM_CONFIG_FILE_GENERATION 0x0003
#define ELM_CONFIG_FILE_GENERATION 0x0004
#define ELM_CONFIG_VERSION ((ELM_CONFIG_EPOCH << 16) | \
ELM_CONFIG_FILE_GENERATION)
/* NB: profile configuration files (.src) must have their