projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bd7b57
)
elm_code: Don't refresh if fonts did not change
author
Andy Williams
<andy@andywilliams.me>
Thu, 6 Apr 2017 22:29:38 +0000
(23:29 +0100)
committer
Andy Williams
<andy@andywilliams.me>
Thu, 6 Apr 2017 22:30:00 +0000
(23:30 +0100)
src/lib/elementary/elm_code_widget.c
patch
|
blob
|
history
diff --git
a/src/lib/elementary/elm_code_widget.c
b/src/lib/elementary/elm_code_widget.c
index
fa78a79
..
095998b
100644
(file)
--- a/
src/lib/elementary/elm_code_widget.c
+++ b/
src/lib/elementary/elm_code_widget.c
@@
-2056,6
+2056,9
@@
_elm_code_widget_font_set(Eo *obj EINA_UNUSED, Elm_Code_Widget_Data *pd,
if (!face)
face = "Mono";
+ if (size == pd->font_size && !strcmp(face, pd->font_name))
+ return;
+
EINA_LIST_FOREACH(pd->grids, item, grid)
{
evas_object_textgrid_font_set(grid, face, size * elm_config_scale_get());