summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_entry.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-15 12:14:32 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 13:22:54 +0900
commit8fb194d969ccb9227e56ea60f538d977393408d7 (patch)
tree0673442275d29108e58a4cb0ab9fc0946db91b59 /src/lib/elementary/elm_entry.c
parentf3eff6eb3ee6e9b56c0be5cd7f8905f14b388e4f (diff)
efl: Use Eina.Position2D for Efl.Gfx.position
Note: This is a little bit more cumbersome in some places but in most it's more convenient than (x,y).
Diffstat (limited to 'src/lib/elementary/elm_entry.c')
-rw-r--r--src/lib/elementary/elm_entry.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/elementary/elm_entry.c b/src/lib/elementary/elm_entry.c
index 02fec56..790b3ff 100644
--- a/src/lib/elementary/elm_entry.c
+++ b/src/lib/elementary/elm_entry.c
@@ -3950,14 +3950,13 @@ _elm_entry_efl_canvas_group_group_del(Eo *obj, Elm_Entry_Data *sd)
3950} 3950}
3951 3951
3952EOLIAN static void 3952EOLIAN static void
3953_elm_entry_efl_gfx_position_set(Eo *obj, Elm_Entry_Data *sd, Evas_Coord x, Evas_Coord y) 3953_elm_entry_efl_gfx_position_set(Eo *obj, Elm_Entry_Data *sd, Eina_Position2D pos)
3954{ 3954{
3955 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 0, x, y)) 3955 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 0, pos.x, pos.y))
3956 return; 3956 return;
3957 3957
3958 efl_gfx_position_set(efl_super(obj, MY_CLASS), x, y); 3958 efl_gfx_position_set(efl_super(obj, MY_CLASS), pos);
3959 3959 efl_gfx_position_set(sd->hit_rect, pos);
3960 evas_object_move(sd->hit_rect, x, y);
3961 3960
3962 if (sd->hoversel) _hoversel_position(obj); 3961 if (sd->hoversel) _hoversel_position(obj);
3963 3962