forked from enlightenment/efl
parent
e7b5030226
commit
5813cfd630
|
@ -336,23 +336,34 @@ _sel_update(Evas_Textblock_Cursor *c, Evas_Object *o, Entry *en)
|
||||||
}
|
}
|
||||||
x = y = w = h = -1;
|
x = y = w = h = -1;
|
||||||
evas_object_geometry_get(o, &x, &y, &w, &h);
|
evas_object_geometry_get(o, &x, &y, &w, &h);
|
||||||
EINA_LIST_FOREACH(en->sel, l, sel)
|
if (en->have_selection)
|
||||||
{
|
{
|
||||||
Evas_Textblock_Rectangle *r;
|
EINA_LIST_FOREACH(en->sel, l, sel)
|
||||||
|
|
||||||
r = range->data;
|
|
||||||
if (sel->obj_bg)
|
|
||||||
{
|
{
|
||||||
evas_object_move(sel->obj_bg, x + r->x, y + r->y);
|
Evas_Textblock_Rectangle *r;
|
||||||
evas_object_resize(sel->obj_bg, r->w, r->h);
|
|
||||||
|
r = range->data;
|
||||||
|
if (sel->obj_bg)
|
||||||
|
{
|
||||||
|
evas_object_move(sel->obj_bg, x + r->x, y + r->y);
|
||||||
|
evas_object_resize(sel->obj_bg, r->w, r->h);
|
||||||
|
}
|
||||||
|
if (sel->obj_fg)
|
||||||
|
{
|
||||||
|
evas_object_move(sel->obj_fg, x + r->x, y + r->y);
|
||||||
|
evas_object_resize(sel->obj_fg, r->w, r->h);
|
||||||
|
}
|
||||||
|
range = eina_list_remove_list(range, range);
|
||||||
|
free(r);
|
||||||
}
|
}
|
||||||
if (sel->obj_fg)
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
while (range)
|
||||||
{
|
{
|
||||||
evas_object_move(sel->obj_fg, x + r->x, y + r->y);
|
free(range->data);
|
||||||
evas_object_resize(sel->obj_fg, r->w, r->h);
|
range = eina_list_remove_list(range, range);
|
||||||
}
|
}
|
||||||
range = eina_list_remove_list(range, range);
|
|
||||||
free(r);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1006,7 +1006,8 @@ _edje_var_anim_add(Edje *ed, double len, const char *fname, int val)
|
||||||
ea->edje = ed;
|
ea->edje = ed;
|
||||||
ea->func = fn;
|
ea->func = fn;
|
||||||
ea->val = val;
|
ea->val = val;
|
||||||
_edje_anim_list = eina_list_append(_edje_anim_list, ed);
|
if (!ed->var_pool->animators)
|
||||||
|
_edje_anim_list = eina_list_append(_edje_anim_list, ed);
|
||||||
ed->var_pool->animators = eina_list_prepend(ed->var_pool->animators, ea);
|
ed->var_pool->animators = eina_list_prepend(ed->var_pool->animators, ea);
|
||||||
if (!_edje_animator)
|
if (!_edje_animator)
|
||||||
_edje_animator = ecore_animator_add(_edje_var_anim_cb, NULL);
|
_edje_animator = ecore_animator_add(_edje_var_anim_cb, NULL);
|
||||||
|
|
Loading…
Reference in New Issue