edje/edje_entry : fixed small bugs and warnings
SVN revision: 63766
This commit is contained in:
parent
69fc731318
commit
75646ae276
|
@ -1447,7 +1447,7 @@ _edje_key_up_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, voi
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_edje_part_move_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
|
_edje_part_move_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||||
{
|
{
|
||||||
Edje_Real_Part *rp = data;
|
Edje_Real_Part *rp = data;
|
||||||
Entry *en;
|
Entry *en;
|
||||||
|
@ -2062,7 +2062,7 @@ _edje_entry_real_part_configure(Edje_Real_Part *rp)
|
||||||
evas_object_geometry_get(rp->object, &x, &y, &w, &h);
|
evas_object_geometry_get(rp->object, &x, &y, &w, &h);
|
||||||
evas_textblock_cursor_geometry_get(en->cursor, &xx, &yy, &ww, &hh, NULL, cur_type);
|
evas_textblock_cursor_geometry_get(en->cursor, &xx, &yy, &ww, &hh, NULL, cur_type);
|
||||||
if (ww < 1) ww = 1;
|
if (ww < 1) ww = 1;
|
||||||
if (hh < 1) ww = 1;
|
if (hh < 1) hh = 1;
|
||||||
if (en->cursor_bg)
|
if (en->cursor_bg)
|
||||||
{
|
{
|
||||||
evas_object_move(en->cursor_bg, x + xx, y + yy);
|
evas_object_move(en->cursor_bg, x + xx, y + yy);
|
||||||
|
@ -2335,7 +2335,7 @@ _edje_entry_cursor_geometry_get(Edje_Real_Part *rp, Evas_Coord *cx, Evas_Coord *
|
||||||
evas_object_geometry_get(rp->object, &x, &y, &w, &h);
|
evas_object_geometry_get(rp->object, &x, &y, &w, &h);
|
||||||
evas_textblock_cursor_geometry_get(en->cursor, &xx, &yy, &ww, &hh, NULL, cur_type);
|
evas_textblock_cursor_geometry_get(en->cursor, &xx, &yy, &ww, &hh, NULL, cur_type);
|
||||||
if (ww < 1) ww = 1;
|
if (ww < 1) ww = 1;
|
||||||
if (hh < 1) ww = 1;
|
if (hh < 1) hh = 1;
|
||||||
if (cx) *cx = x + xx;
|
if (cx) *cx = x + xx;
|
||||||
if (cy) *cy = y + yy;
|
if (cy) *cy = y + yy;
|
||||||
if (cw) *cw = ww;
|
if (cw) *cw = ww;
|
||||||
|
|
Loading…
Reference in New Issue