forked from enlightenment/efl
Edje: Fix 'variable may be used uninitialized' warning. Fix some
formatting. SVN revision: 60196
This commit is contained in:
parent
969e12b320
commit
d914f3d711
|
@ -712,7 +712,7 @@ _edje_anchor_mouse_out_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNU
|
||||||
static void
|
static void
|
||||||
_anchors_update(Evas_Textblock_Cursor *c __UNUSED__, Evas_Object *o, Entry *en)
|
_anchors_update(Evas_Textblock_Cursor *c __UNUSED__, Evas_Object *o, Entry *en)
|
||||||
{
|
{
|
||||||
Eina_List *l, *ll, *range;
|
Eina_List *l, *ll, *range = NULL;
|
||||||
Evas_Coord x, y, w, h;
|
Evas_Coord x, y, w, h;
|
||||||
Evas_Object *smart, *clip;
|
Evas_Object *smart, *clip;
|
||||||
Sel *sel;
|
Sel *sel;
|
||||||
|
@ -734,8 +734,10 @@ _anchors_update(Evas_Textblock_Cursor *c __UNUSED__, Evas_Object *o, Entry *en)
|
||||||
while (an->sel)
|
while (an->sel)
|
||||||
{
|
{
|
||||||
sel = an->sel->data;
|
sel = an->sel->data;
|
||||||
en->rp->edje->subobjs = eina_list_remove(en->rp->edje->subobjs, sel->obj_bg);
|
en->rp->edje->subobjs =
|
||||||
en->rp->edje->subobjs = eina_list_remove(en->rp->edje->subobjs, sel->obj_fg);
|
eina_list_remove(en->rp->edje->subobjs, sel->obj_bg);
|
||||||
|
en->rp->edje->subobjs =
|
||||||
|
eina_list_remove(en->rp->edje->subobjs, sel->obj_fg);
|
||||||
if (sel->obj_bg) evas_object_del(sel->obj_bg);
|
if (sel->obj_bg) evas_object_del(sel->obj_bg);
|
||||||
if (sel->obj_fg) evas_object_del(sel->obj_fg);
|
if (sel->obj_fg) evas_object_del(sel->obj_fg);
|
||||||
if (sel->obj) evas_object_del(sel->obj);
|
if (sel->obj) evas_object_del(sel->obj);
|
||||||
|
@ -763,7 +765,8 @@ _anchors_update(Evas_Textblock_Cursor *c __UNUSED__, Evas_Object *o, Entry *en)
|
||||||
// for link anchors
|
// for link anchors
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
range = evas_textblock_cursor_range_geometry_get(an->start, an->end);
|
range =
|
||||||
|
evas_textblock_cursor_range_geometry_get(an->start, an->end);
|
||||||
if (eina_list_count(range) != eina_list_count(an->sel))
|
if (eina_list_count(range) != eina_list_count(an->sel))
|
||||||
{
|
{
|
||||||
while (an->sel)
|
while (an->sel)
|
||||||
|
|
Loading…
Reference in New Issue