summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinYong Park <j4939.park@samsung.com>2017-09-19 16:23:43 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2017-11-21 14:01:48 +0900
commite90b8a9be2098d4bf69ad868a20139796287f678 (patch)
treef3ff841a77c7247dce9d2c4af6a8919be3dbbb0d
parent0ed5ee305147673dda6710c660609ceee53f2425 (diff)
efl_ui_popup: remove unnecessary function call
Summary: In _calc_align function, it could get align property through Efl_Ui_Popup_Data *pd directly, but call align_get function previously. Reviewers: Jaehyun_Cho, herb, thiepha, jpeg, cedric, woohyun Reviewed By: Jaehyun_Cho Differential Revision: https://phab.enlightenment.org/D5207
-rw-r--r--src/lib/elementary/efl_ui_popup.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_popup.c b/src/lib/elementary/efl_ui_popup.c
index 5db1415260..2deb6a29f4 100644
--- a/src/lib/elementary/efl_ui_popup.c
+++ b/src/lib/elementary/efl_ui_popup.c
@@ -47,10 +47,7 @@ _calc_align(Evas_Object *obj)
47 Evas_Coord pw, ph; 47 Evas_Coord pw, ph;
48 evas_object_geometry_get(obj, NULL, NULL, &pw, &ph); 48 evas_object_geometry_get(obj, NULL, NULL, &pw, &ph);
49 49
50 Efl_Ui_Popup_Align align; 50 switch (pd->align)
51 align = efl_ui_popup_align_get(obj);
52
53 switch (align)
54 { 51 {
55 case EFL_UI_POPUP_ALIGN_CENTER: 52 case EFL_UI_POPUP_ALIGN_CENTER:
56 efl_gfx_position_set(efl_super(obj, MY_CLASS), EINA_POSITION2D(x + ((w - pw ) / 2), y + ((h - ph) / 2))); 53 efl_gfx_position_set(efl_super(obj, MY_CLASS), EINA_POSITION2D(x + ((w - pw ) / 2), y + ((h - ph) / 2)));