forked from enlightenment/enlightenment
improve theme apply to actually apply startup splash setting...
This commit is contained in:
parent
ed60e2482a
commit
cafc28a197
|
@ -745,15 +745,13 @@ _basic_apply_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
||||||
|
|
||||||
file = ecore_file_file_get(cfdata->theme);
|
file = ecore_file_file_get(cfdata->theme);
|
||||||
name = ecore_file_strip_ext(file);
|
name = ecore_file_strip_ext(file);
|
||||||
|
e_config->show_splash = cfdata->show_splash;
|
||||||
if (name)
|
if (name)
|
||||||
{
|
{
|
||||||
const char *theme = elm_theme_get(NULL);
|
const char *theme = elm_theme_get(NULL);
|
||||||
|
|
||||||
if ((theme) && (!strcmp(name, theme)))
|
if (e_util_strcmp(name, theme))
|
||||||
{
|
{
|
||||||
free(name);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
elm_theme_set(NULL, name);
|
elm_theme_set(NULL, name);
|
||||||
elm_config_all_flush();
|
elm_config_all_flush();
|
||||||
elm_config_save();
|
elm_config_save();
|
||||||
|
@ -761,6 +759,7 @@ _basic_apply_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
||||||
a = e_action_find("restart");
|
a = e_action_find("restart");
|
||||||
if ((a) && (a->func.go)) a->func.go(NULL, NULL);
|
if ((a) && (a->func.go)) a->func.go(NULL, NULL);
|
||||||
}
|
}
|
||||||
e_config->show_splash = cfdata->show_splash;
|
free(name);
|
||||||
|
}
|
||||||
return 1; /* Apply was OK */
|
return 1; /* Apply was OK */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue