summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWooHyun Jung <wh0705.jung@samsung.com>2020-08-28 10:16:29 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2020-08-28 10:16:29 +0900
commitece7010a4a780b5460c0a50c1884445ad0df75c9 (patch)
tree52d351c72210eaad6eb78191b09faaf31d2a8aa0
parent13c125803efbf74c2ce67a0dac30c1b179d99739 (diff)
elm_config: rescale is needed when font or font size is changed
Summary: This patch fixes the issue that any application is not rescaled when font or font size is changed by elementary_config. Test Plan: 1. run elementary_test 2. run elementary_config 3. change the font in elementary_config 4. check the button size in elementary_test Reviewers: id213sin, ali.alzyod, devilhorns, raster Reviewed By: devilhorns, raster Subscribers: devilhorns, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12117
-rw-r--r--src/lib/elementary/elm_config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c
index 0298b26b45..96384d37e9 100644
--- a/src/lib/elementary/elm_config.c
+++ b/src/lib/elementary/elm_config.c
@@ -4460,6 +4460,7 @@ _elm_config_reload(void)
4460 unsigned char ppassword_show_last; 4460 unsigned char ppassword_show_last;
4461 double ppassword_show_last_timeout; 4461 double ppassword_show_last_timeout;
4462 int pweek_start, pweekend_start, pweekend_len, pyear_min, pyear_max; 4462 int pweek_start, pweekend_start, pweekend_len, pyear_min, pyear_max;
4463 Eina_List *pfont_overlays;
4463 4464
4464#define STO(x) if (_elm_config->x) p##x = eina_stringshare_add(_elm_config->x) 4465#define STO(x) if (_elm_config->x) p##x = eina_stringshare_add(_elm_config->x)
4465 STO(theme); 4466 STO(theme);
@@ -4478,6 +4479,7 @@ _elm_config_reload(void)
4478 STO(weekend_len); 4479 STO(weekend_len);
4479 STO(year_min); 4480 STO(year_min);
4480 STO(year_max); 4481 STO(year_max);
4482 STO(font_overlays);
4481#undef STO 4483#undef STO
4482 4484
4483 is_mirrored = _elm_config->is_mirrored; 4485 is_mirrored = _elm_config->is_mirrored;
@@ -4512,6 +4514,7 @@ _elm_config_reload(void)
4512 || CMP(theme) 4514 || CMP(theme)
4513 || CMP(modules) 4515 || CMP(modules)
4514 || CMP(icon_theme) 4516 || CMP(icon_theme)
4517 || CMP(font_overlays)
4515 ) 4518 )
4516 _elm_rescale(); 4519 _elm_rescale();
4517#undef DBL_CMP 4520#undef DBL_CMP