summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_ui_popup.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-08-21 10:41:57 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-08-21 10:42:04 -0400
commitbedb6df9739b5d74cbbeef652fcf2ba4ac3b7709 (patch)
tree3ead62fbe4a217c1e366a5d2f8eabe3d1e7cb0bd /src/bin/elementary/test_ui_popup.c
parentbb62f71fe21763a2a76e0e23f83659e1c8017571 (diff)
efl_ui/popup: remove anchor_popup class
Summary: all functionality is now merged into the base popup class. this greatly simplifies the codebase and deduplicates a lot of code ref T7902 Depends on D9651 Reviewers: cedric Reviewed By: cedric Subscribers: herb, cedric, #reviewers, #committers Tags: #efl_widgets Maniphest Tasks: T7902 Differential Revision: https://phab.enlightenment.org/D9652
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/test_ui_popup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/elementary/test_ui_popup.c b/src/bin/elementary/test_ui_popup.c
index 16b0b9c..208b7bd 100644
--- a/src/bin/elementary/test_ui_popup.c
+++ b/src/bin/elementary/test_ui_popup.c
@@ -2,7 +2,7 @@
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4 4
5#define EFL_UI_ANCHOR_POPUP_BETA 5#define EFL_UI_POPUP_BETA
6#define EFL_UI_SCROLL_ALERT_POPUP_BETA 6#define EFL_UI_SCROLL_ALERT_POPUP_BETA
7#include <Efl_Ui.h> 7#include <Efl_Ui.h>
8#include <Elementary.h> 8#include <Elementary.h>
@@ -992,13 +992,13 @@ test_ui_text_alert_popup(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, v
992static void 992static void
993_anchor_set_cb(void *data, const Efl_Event *ev) 993_anchor_set_cb(void *data, const Efl_Event *ev)
994{ 994{
995 efl_ui_anchor_popup_anchor_set(data, ev->object); 995 efl_ui_popup_anchor_set(data, ev->object);
996} 996}
997 997
998static void 998static void
999_anchor_unset_cb(void *data, const Efl_Event *ev EINA_UNUSED) 999_anchor_unset_cb(void *data, const Efl_Event *ev EINA_UNUSED)
1000{ 1000{
1001 efl_ui_anchor_popup_anchor_set(data, NULL); 1001 efl_ui_popup_anchor_set(data, NULL);
1002} 1002}
1003 1003
1004void 1004void
@@ -1021,12 +1021,12 @@ test_ui_anchor_popup(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
1021 efl_gfx_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 1021 efl_gfx_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
1022 efl_content_set(win, layout); 1022 efl_content_set(win, layout);
1023 1023
1024 Eo *efl_ui_popup = efl_add(EFL_UI_ANCHOR_POPUP_CLASS, win); 1024 Eo *efl_ui_popup = efl_add(EFL_UI_POPUP_CLASS, win);
1025 1025
1026 efl_ui_popup_part_backwall_repeat_events_set(efl_part(efl_ui_popup, "backwall"), EINA_TRUE); 1026 efl_ui_popup_part_backwall_repeat_events_set(efl_part(efl_ui_popup, "backwall"), EINA_TRUE);
1027 1027
1028 //Default align priority order is top, left, right, bottom, center. 1028 //Default align priority order is top, left, right, bottom, center.
1029 efl_ui_anchor_popup_align_priority_set(efl_ui_popup, EFL_UI_POPUP_ALIGN_TOP, 1029 efl_ui_popup_align_priority_set(efl_ui_popup, EFL_UI_POPUP_ALIGN_TOP,
1030 EFL_UI_POPUP_ALIGN_BOTTOM, 1030 EFL_UI_POPUP_ALIGN_BOTTOM,
1031 EFL_UI_POPUP_ALIGN_LEFT, 1031 EFL_UI_POPUP_ALIGN_LEFT,
1032 EFL_UI_POPUP_ALIGN_RIGHT, 1032 EFL_UI_POPUP_ALIGN_RIGHT,