summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elc_ctxpopup.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-13 16:38:33 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-13 18:03:34 +0900
commit0c46fc71033edda92f4e86b86f6d1d62751f8998 (patch)
treed1db3b1aea5e24c97f234b4edfb1ff8022bf192d /src/lib/elementary/elc_ctxpopup.c
parenta9732948205906120caef2445aac409b3bf1bfad (diff)
evas: Use Eina_Rectangle internally
Instead of Evas_Coord_Rectangle which is exactly the same thing but with a different name and typedefs.
Diffstat (limited to 'src/lib/elementary/elc_ctxpopup.c')
-rw-r--r--src/lib/elementary/elc_ctxpopup.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/elementary/elc_ctxpopup.c b/src/lib/elementary/elc_ctxpopup.c
index 80437bc..2e908f1 100644
--- a/src/lib/elementary/elc_ctxpopup.c
+++ b/src/lib/elementary/elc_ctxpopup.c
@@ -146,7 +146,7 @@ _key_action_escape(Evas_Object *obj, const char *params EINA_UNUSED)
146static void 146static void
147_x_pos_adjust(Evas_Coord_Point *pos, 147_x_pos_adjust(Evas_Coord_Point *pos,
148 Evas_Coord_Point *base_size, 148 Evas_Coord_Point *base_size,
149 Evas_Coord_Rectangle *hover_area) 149 Eina_Rectangle *hover_area)
150{ 150{
151 pos->x -= (base_size->x / 2); 151 pos->x -= (base_size->x / 2);
152 152
@@ -165,7 +165,7 @@ _x_pos_adjust(Evas_Coord_Point *pos,
165static void 165static void
166_y_pos_adjust(Evas_Coord_Point *pos, 166_y_pos_adjust(Evas_Coord_Point *pos,
167 Evas_Coord_Point *base_size, 167 Evas_Coord_Point *base_size,
168 Evas_Coord_Rectangle *hover_area) 168 Eina_Rectangle *hover_area)
169{ 169{
170 pos->y -= (base_size->y / 2); 170 pos->y -= (base_size->y / 2);
171 171
@@ -183,10 +183,10 @@ _y_pos_adjust(Evas_Coord_Point *pos,
183 183
184static Elm_Ctxpopup_Direction 184static Elm_Ctxpopup_Direction
185_base_geometry_calc(Evas_Object *obj, 185_base_geometry_calc(Evas_Object *obj,
186 Evas_Coord_Rectangle *rect) 186 Eina_Rectangle *rect)
187{ 187{
188 Elm_Ctxpopup_Direction dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN; 188 Elm_Ctxpopup_Direction dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
189 Evas_Coord_Rectangle hover_area; 189 Eina_Rectangle hover_area;
190 Evas_Coord_Point pos = {0, 0}; 190 Evas_Coord_Point pos = {0, 0};
191 Evas_Coord_Point arrow_size; 191 Evas_Coord_Point arrow_size;
192 Evas_Coord_Point base_size; 192 Evas_Coord_Point base_size;
@@ -364,9 +364,9 @@ _base_geometry_calc(Evas_Object *obj,
364static void 364static void
365_arrow_update(Evas_Object *obj, 365_arrow_update(Evas_Object *obj,
366 Elm_Ctxpopup_Direction dir, 366 Elm_Ctxpopup_Direction dir,
367 Evas_Coord_Rectangle base_size) 367 Eina_Rectangle base_size)
368{ 368{
369 Evas_Coord_Rectangle arrow_size; 369 Eina_Rectangle arrow_size;
370 Evas_Coord x, y; 370 Evas_Coord x, y;
371 double drag; 371 double drag;
372 372
@@ -568,7 +568,7 @@ _hide_signals_emit(Evas_Object *obj,
568static void 568static void
569_base_shift_by_arrow(Evas_Object *arrow, 569_base_shift_by_arrow(Evas_Object *arrow,
570 Elm_Ctxpopup_Direction dir, 570 Elm_Ctxpopup_Direction dir,
571 Evas_Coord_Rectangle *rect) 571 Eina_Rectangle *rect)
572{ 572{
573 Evas_Coord arrow_w, arrow_h; 573 Evas_Coord arrow_w, arrow_h;
574 574
@@ -608,7 +608,7 @@ _elm_ctxpopup_elm_widget_widget_sub_object_add(Eo *obj, Elm_Ctxpopup_Data *_pd E
608EOLIAN static void 608EOLIAN static void
609_elm_ctxpopup_elm_layout_sizing_eval(Eo *obj, Elm_Ctxpopup_Data *sd) 609_elm_ctxpopup_elm_layout_sizing_eval(Eo *obj, Elm_Ctxpopup_Data *sd)
610{ 610{
611 Evas_Coord_Rectangle rect = { 0, 0, 1, 1 }; 611 Eina_Rectangle rect = { 0, 0, 1, 1 };
612 Evas_Coord_Point list_size = { 0, 0 }, parent_size = {0, 0}; 612 Evas_Coord_Point list_size = { 0, 0 }, parent_size = {0, 0};
613 613
614 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); 614 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);