Ui text: fix selection handler behavior
This commit is contained in:
parent
c0331b41eb
commit
b6cf837196
|
@ -549,6 +549,12 @@ _update_selection_handler(Eo *obj)
|
||||||
Evas_Coord ex, ey, eh;
|
Evas_Coord ex, ey, eh;
|
||||||
Evas_Coord ent_x, ent_y;
|
Evas_Coord ent_x, ent_y;
|
||||||
|
|
||||||
|
if (!sd->have_selection)
|
||||||
|
{
|
||||||
|
_hide_selection_handler(obj);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!sd->sel_handler_disabled)
|
if (!sd->sel_handler_disabled)
|
||||||
{
|
{
|
||||||
Eina_Rectangle *rect;
|
Eina_Rectangle *rect;
|
||||||
|
@ -3555,10 +3561,7 @@ _efl_ui_text_efl_gfx_visible_set(Eo *obj, Efl_Ui_Text_Data *sd EINA_UNUSED, Eina
|
||||||
return;
|
return;
|
||||||
|
|
||||||
efl_gfx_visible_set(efl_super(obj, MY_CLASS), vis);
|
efl_gfx_visible_set(efl_super(obj, MY_CLASS), vis);
|
||||||
if (vis)
|
if (vis) _update_selection_handler(obj);
|
||||||
_update_selection_handler(obj);
|
|
||||||
else if (sd->have_selection)
|
|
||||||
_hide_selection_handler(obj);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
|
|
Loading…
Reference in New Issue