summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_image_zoomable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/efl_ui_image_zoomable.c')
-rw-r--r--src/lib/elementary/efl_ui_image_zoomable.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/lib/elementary/efl_ui_image_zoomable.c b/src/lib/elementary/efl_ui_image_zoomable.c
index 0052e6b..e9922db 100644
--- a/src/lib/elementary/efl_ui_image_zoomable.c
+++ b/src/lib/elementary/efl_ui_image_zoomable.c
@@ -151,12 +151,12 @@ _calc_job_cb(void *data)
151} 151}
152 152
153EOLIAN static void 153EOLIAN static void
154_efl_ui_image_zoomable_pan_efl_gfx_position_set(Eo *obj, Efl_Ui_Image_Zoomable_Pan_Data *psd, Evas_Coord x, Evas_Coord y) 154_efl_ui_image_zoomable_pan_efl_gfx_position_set(Eo *obj, Efl_Ui_Image_Zoomable_Pan_Data *psd, Eina_Position2D pos)
155{ 155{
156 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 0, x, y)) 156 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 0, pos.x, pos.y))
157 return; 157 return;
158 158
159 efl_gfx_position_set(efl_super(obj, MY_PAN_CLASS), x, y); 159 efl_gfx_position_set(efl_super(obj, MY_PAN_CLASS), pos);
160 160
161 ecore_job_del(psd->wsd->calc_job); 161 ecore_job_del(psd->wsd->calc_job);
162 psd->wsd->calc_job = ecore_job_add(_calc_job_cb, psd->wobj); 162 psd->wsd->calc_job = ecore_job_add(_calc_job_cb, psd->wobj);
@@ -1505,14 +1505,13 @@ _efl_ui_image_zoomable_efl_canvas_group_group_del(Eo *obj, Efl_Ui_Image_Zoomable
1505} 1505}
1506 1506
1507EOLIAN static void 1507EOLIAN static void
1508_efl_ui_image_zoomable_efl_gfx_position_set(Eo *obj, Efl_Ui_Image_Zoomable_Data *sd, Evas_Coord x, Evas_Coord y) 1508_efl_ui_image_zoomable_efl_gfx_position_set(Eo *obj, Efl_Ui_Image_Zoomable_Data *sd, Eina_Position2D pos)
1509{ 1509{
1510 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 0, x, y)) 1510 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 0, pos.x, pos.y))
1511 return; 1511 return;
1512 1512
1513 efl_gfx_position_set(efl_super(obj, MY_CLASS), x, y); 1513 efl_gfx_position_set(efl_super(obj, MY_CLASS), pos);
1514 1514 efl_gfx_position_set(sd->hit_rect, pos);
1515 evas_object_move(sd->hit_rect, x, y);
1516} 1515}
1517 1516
1518EOLIAN static void 1517EOLIAN static void