forked from enlightenment/efl
performance: Fix issue where EDI would slow down
a bad circular problem where an error with tooltips causes more tooltips to be spawned...
This commit is contained in:
parent
906cfc9a2c
commit
b07cc34de6
|
@ -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);
|
pd = eo_data_scope_get(widget, ELM_CODE_WIDGET_CLASS);
|
||||||
|
|
||||||
if (!text)
|
if (!text)
|
||||||
elm_object_tooltip_hide(widget);
|
{
|
||||||
else
|
elm_object_tooltip_hide(widget);
|
||||||
elm_object_tooltip_show(widget);
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
elm_object_tooltip_show(widget);
|
||||||
|
|
||||||
if (pd->tooltip) // will have been created by the callback below...
|
if (pd->tooltip) // will have been created by the callback below...
|
||||||
elm_object_text_set(pd->tooltip, text);
|
elm_object_text_set(pd->tooltip, text);
|
||||||
|
|
Loading…
Reference in New Issue