summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_config.c
diff options
context:
space:
mode:
authorsubhransu mohanty <sub.mohanty@samsung.com>2019-08-22 08:14:13 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-08-22 08:14:14 -0400
commit10b2f65e606594616abc1acf2dd9db1277ed145c (patch)
tree5c95e40012f726a4750187fdfee0dc0cf5f8dfbc /src/lib/elementary/elm_config.c
parente8a32d72c6a139fd4efedf2f7c4ef12be15f9634 (diff)
elm/config: avoid unnecessary elm cache flush
Summary: in config_apply() we load the deafult theme and then elm_recache() just throws it away. so just move it before config_apply for time being. We need to revisit to check if we really need that elm_recache() in that function or not. Reviewers: Hermet, raster, cedric, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9700
Diffstat (limited to 'src/lib/elementary/elm_config.c')
-rw-r--r--src/lib/elementary/elm_config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c
index 5344f6681a..5624f0b125 100644
--- a/src/lib/elementary/elm_config.c
+++ b/src/lib/elementary/elm_config.c
@@ -2033,6 +2033,7 @@ _config_flush_get(void)
2033 _elm_config->is_mirrored = is_mirrored; 2033 _elm_config->is_mirrored = is_mirrored;
2034 _elm_config->translate = translate; 2034 _elm_config->translate = translate;
2035 2035
2036 _elm_recache();
2036 _config_apply(); 2037 _config_apply();
2037 _config_sub_apply(); 2038 _config_sub_apply();
2038 evas_font_reinit(); 2039 evas_font_reinit();
@@ -2040,7 +2041,6 @@ _config_flush_get(void)
2040 _elm_config_color_overlay_apply(); 2041 _elm_config_color_overlay_apply();
2041 if (pre_scale != _elm_config->scale) 2042 if (pre_scale != _elm_config->scale)
2042 _elm_rescale(); 2043 _elm_rescale();
2043 _elm_recache();
2044 _elm_old_clouseau_reload(); 2044 _elm_old_clouseau_reload();
2045 _elm_config_key_binding_hash(); 2045 _elm_config_key_binding_hash();
2046 _elm_win_access(_elm_config->access_mode); 2046 _elm_win_access(_elm_config->access_mode);
@@ -4218,10 +4218,10 @@ _elm_config_init(void)
4218 ELM_SAFE_FREE(_elm_accel_preference, eina_stringshare_del); 4218 ELM_SAFE_FREE(_elm_accel_preference, eina_stringshare_del);
4219 ELM_SAFE_FREE(_elm_gl_preference, eina_stringshare_del); 4219 ELM_SAFE_FREE(_elm_gl_preference, eina_stringshare_del);
4220 _translation_init(); 4220 _translation_init();
4221 _elm_recache();
4221 _config_apply(); 4222 _config_apply();
4222 _elm_config_font_overlay_apply(); 4223 _elm_config_font_overlay_apply();
4223 _elm_config_color_overlay_apply(); 4224 _elm_config_color_overlay_apply();
4224 _elm_recache();
4225 _elm_old_clouseau_reload(); 4225 _elm_old_clouseau_reload();
4226 _elm_config_key_binding_hash(); 4226 _elm_config_key_binding_hash();
4227} 4227}
@@ -4402,6 +4402,7 @@ _elm_config_reload(void)
4402 _elm_config->is_mirrored = is_mirrored; 4402 _elm_config->is_mirrored = is_mirrored;
4403 _elm_config->translate = translate; 4403 _elm_config->translate = translate;
4404 4404
4405 _elm_recache();
4405 _config_apply(); 4406 _config_apply();
4406 _elm_config_font_overlay_apply(); 4407 _elm_config_font_overlay_apply();
4407 _elm_config_color_overlay_apply(); 4408 _elm_config_color_overlay_apply();
@@ -4426,7 +4427,6 @@ _elm_config_reload(void)
4426 ) 4427 )
4427 _elm_rescale(); 4428 _elm_rescale();
4428#undef CMP 4429#undef CMP
4429 _elm_recache();
4430 _elm_old_clouseau_reload(); 4430 _elm_old_clouseau_reload();
4431 _elm_config_key_binding_hash(); 4431 _elm_config_key_binding_hash();
4432 ecore_event_add(ELM_EVENT_CONFIG_ALL_CHANGED, NULL, NULL, NULL); 4432 ecore_event_add(ELM_EVENT_CONFIG_ALL_CHANGED, NULL, NULL, NULL);
@@ -4703,11 +4703,11 @@ _elm_config_profile_set(const char *profile)
4703 _elm_config->is_mirrored = is_mirrored; 4703 _elm_config->is_mirrored = is_mirrored;
4704 _elm_config->translate = translate; 4704 _elm_config->translate = translate;
4705 4705
4706 _elm_recache();
4706 _config_apply(); 4707 _config_apply();
4707 _elm_config_font_overlay_apply(); 4708 _elm_config_font_overlay_apply();
4708 _elm_config_color_overlay_apply(); 4709 _elm_config_color_overlay_apply();
4709 _elm_rescale(); 4710 _elm_rescale();
4710 _elm_recache();
4711 _elm_old_clouseau_reload(); 4711 _elm_old_clouseau_reload();
4712 _elm_config_key_binding_hash(); 4712 _elm_config_key_binding_hash();
4713} 4713}