dont get item anchors so often!

SVN revision: 52187
This commit is contained in:
Carsten Haitzler 2010-09-13 12:08:19 +00:00
parent ee8881634b
commit 2303255182
1 changed files with 31 additions and 35 deletions

View File

@ -655,6 +655,8 @@ _anchors_update(Evas_Textblock_Cursor *c __UNUSED__, Evas_Object *o, Entry *en)
{
Evas_Object *ob;
if (!an->sel)
{
while (an->sel)
{
sel = an->sel->data;
@ -669,15 +671,7 @@ _anchors_update(Evas_Textblock_Cursor *c __UNUSED__, Evas_Object *o, Entry *en)
sel = calloc(1, sizeof(Sel));
an->sel = eina_list_append(an->sel, sel);
/*
ob = evas_object_rectangle_add(en->rp->edje->evas);
evas_object_color_set(ob, 0, 0, 0, 0);
evas_object_smart_member_add(ob, smart);
evas_object_stack_above(ob, o);
evas_object_clip_set(ob, clip);
evas_object_pass_events_set(ob, 1);
evas_object_show(ob);
*/
if (en->rp->edje->item_provider.func)
{
ob = en->rp->edje->item_provider.func
@ -691,6 +685,7 @@ _anchors_update(Evas_Textblock_Cursor *c __UNUSED__, Evas_Object *o, Entry *en)
sel->obj = ob;
}
}
}
// for link anchors
else
{
@ -756,7 +751,8 @@ _anchors_update(Evas_Textblock_Cursor *c __UNUSED__, Evas_Object *o, Entry *en)
{
Evas_Coord cx, cy, cw, ch;
if (!evas_textblock_cursor_format_item_geometry_get(an->start, &cx, &cy, &cw, &ch))
if (!evas_textblock_cursor_format_item_geometry_get
(an->start, &cx, &cy, &cw, &ch))
continue;
evas_object_move(sel->obj, x + cx, y + cy);
evas_object_resize(sel->obj, cw, ch);