enventor - reset the theme properly after profile set.

This commit is contained in:
ChunEon Park 2013-09-20 15:27:47 +09:00
parent 537f757ba9
commit b091589cf6
1 changed files with 5 additions and 1 deletions

View File

@ -565,10 +565,14 @@ elm_setup()
{
elm_config_profile_set("standard");
//Recover the scale since it will be reset by elm_config_profile_set()
/* Recover the scale & theme since it will be reset by
elm_config_profile_set() */
char *scale = getenv("ELM_SCALE");
if (scale) elm_config_scale_set(atof(scale));
char *theme = getenv("ELM_THEME");
if (theme) elm_theme_set(NULL, theme);
elm_config_scroll_bounce_enabled_set(EINA_FALSE);
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR);