ajwillia-ms pushed a commit to branch master. http://git.enlightenment.org/tools/edi.git/commit/?id=01fd2997d22edb03a267713406602e91b962067c
commit 01fd2997d22edb03a267713406602e91b962067c Author: Andy Williams <a...@andywilliams.me> Date: Sat May 30 22:48:35 2015 +0100 performance: Fix issue where EDI would slow down a bad circular problem where an error with tooltips causes more tooltips to be spawned... --- elm_code/src/lib/widget/elm_code_widget_tooltip.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/elm_code/src/lib/widget/elm_code_widget_tooltip.c b/elm_code/src/lib/widget/elm_code_widget_tooltip.c index f08c18e..44abe91 100644 --- a/elm_code/src/lib/widget/elm_code_widget_tooltip.c +++ b/elm_code/src/lib/widget/elm_code_widget_tooltip.c @@ -14,9 +14,12 @@ _elm_code_widget_tooltip_text_set(Evas_Object *widget, const char *text) pd = eo_data_scope_get(widget, ELM_CODE_WIDGET_CLASS); if (!text) - elm_object_tooltip_hide(widget); - else - elm_object_tooltip_show(widget); + { + elm_object_tooltip_hide(widget); + return; + } + + elm_object_tooltip_show(widget); if (pd->tooltip) // will have been created by the callback below... elm_object_text_set(pd->tooltip, text); --