summaryrefslogtreecommitdiff
path: root/src/bin/elementary
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2017-10-30 20:34:42 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2017-11-28 17:15:42 +0900
commit91df6723c929dc91ccf040ba5021c1142d1a6a17 (patch)
treefa6d14f5baed511863f36baec8bb827aee737f9b /src/bin/elementary
parentf82779efc220faf2c382489dede0e3910c37ea77 (diff)
efl_ui_popup: Rename bg_set with backwall_set
Since "background" is used as a basic part property, "backwall" is used to indicate the area behind efl_ui_popup.
Diffstat (limited to 'src/bin/elementary')
-rw-r--r--src/bin/elementary/test_ui_popup.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/bin/elementary/test_ui_popup.c b/src/bin/elementary/test_ui_popup.c
index 2c7075de32..b39113f23d 100644
--- a/src/bin/elementary/test_ui_popup.c
+++ b/src/bin/elementary/test_ui_popup.c
@@ -16,7 +16,7 @@ typedef struct
16} efl_ui_popup_data; 16} efl_ui_popup_data;
17 17
18static void 18static void
19_bg_clicked(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED) 19_backwall_clicked(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
20{ 20{
21 printf("Popup's background is clicked.\n"); 21 printf("Popup's background is clicked.\n");
22} 22}
@@ -55,7 +55,7 @@ _create_popup(efl_ui_popup_data *p_data)
55 55
56 Eo *efl_ui_popup = efl_add(EFL_UI_POPUP_CLASS, p_data->win); 56 Eo *efl_ui_popup = efl_add(EFL_UI_POPUP_CLASS, p_data->win);
57 57
58 efl_event_callback_add(efl_ui_popup, EFL_UI_POPUP_EVENT_BG_CLICKED, _bg_clicked, NULL); 58 efl_event_callback_add(efl_ui_popup, EFL_UI_POPUP_EVENT_BACKWALL_CLICKED, _backwall_clicked, NULL);
59 efl_event_callback_add(efl_ui_popup, EFL_UI_POPUP_EVENT_TIMEOUT, _timeout_cb, p_data); 59 efl_event_callback_add(efl_ui_popup, EFL_UI_POPUP_EVENT_TIMEOUT, _timeout_cb, p_data);
60 efl_gfx_size_set(efl_ui_popup, EINA_SIZE2D(160, 160)); 60 efl_gfx_size_set(efl_ui_popup, EINA_SIZE2D(160, 160));
61 61
@@ -75,7 +75,7 @@ _create_cb(void *data, const Efl_Event *ev EINA_UNUSED)
75} 75}
76 76
77static void 77static void
78_bg_cb(void *data EINA_UNUSED, const Efl_Event *ev) 78_backwall_cb(void *data EINA_UNUSED, const Efl_Event *ev)
79{ 79{
80 static int k = 0; 80 static int k = 0;
81 efl_ui_popup_data *p_data = data; 81 efl_ui_popup_data *p_data = data;
@@ -84,13 +84,13 @@ _bg_cb(void *data EINA_UNUSED, const Efl_Event *ev)
84 { 84 {
85 char buf[PATH_MAX]; 85 char buf[PATH_MAX];
86 snprintf(buf, sizeof(buf), "%s/images/sky_01.jpg", elm_app_data_dir_get()); 86 snprintf(buf, sizeof(buf), "%s/images/sky_01.jpg", elm_app_data_dir_get());
87 efl_ui_popup_bg_set(p_data->efl_ui_popup, buf, NULL); 87 efl_ui_popup_backwall_set(p_data->efl_ui_popup, buf, NULL);
88 efl_text_set(ev->object, "Bg UnSet"); 88 efl_text_set(ev->object, "Backwall UnSet");
89 } 89 }
90 else 90 else
91 { 91 {
92 efl_ui_popup_bg_set(p_data->efl_ui_popup, NULL, NULL); 92 efl_ui_popup_backwall_set(p_data->efl_ui_popup, NULL, NULL);
93 efl_text_set(ev->object, "Bg Set"); 93 efl_text_set(ev->object, "Backwall Set");
94 } 94 }
95 k = !k; 95 k = !k;
96} 96}
@@ -100,14 +100,14 @@ _repeat_event_cb(void *data EINA_UNUSED, const Efl_Event *ev)
100{ 100{
101 efl_ui_popup_data *p_data = data; 101 efl_ui_popup_data *p_data = data;
102 if (!p_data->efl_ui_popup) return; 102 if (!p_data->efl_ui_popup) return;
103 if (!efl_ui_popup_bg_repeat_events_get(p_data->efl_ui_popup)) 103 if (!efl_ui_popup_backwall_repeat_events_get(p_data->efl_ui_popup))
104 { 104 {
105 efl_ui_popup_bg_repeat_events_set(p_data->efl_ui_popup, EINA_TRUE); 105 efl_ui_popup_backwall_repeat_events_set(p_data->efl_ui_popup, EINA_TRUE);
106 efl_text_set(ev->object, "Repeat Event UnSet"); 106 efl_text_set(ev->object, "Repeat Event UnSet");
107 } 107 }
108 else 108 else
109 { 109 {
110 efl_ui_popup_bg_repeat_events_set(p_data->efl_ui_popup, EINA_FALSE); 110 efl_ui_popup_backwall_repeat_events_set(p_data->efl_ui_popup, EINA_FALSE);
111 efl_text_set(ev->object, "Repeat Event Set"); 111 efl_text_set(ev->object, "Repeat Event Set");
112 } 112 }
113} 113}
@@ -265,11 +265,11 @@ test_ui_popup(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
265 efl_gfx_size_set(dummy_btn, EINA_SIZE2D(150, 50)); 265 efl_gfx_size_set(dummy_btn, EINA_SIZE2D(150, 50));
266 efl_event_callback_add(dummy_btn, EFL_UI_EVENT_CLICKED, _dummy_cb, p_data); 266 efl_event_callback_add(dummy_btn, EFL_UI_EVENT_CLICKED, _dummy_cb, p_data);
267 267
268 Eo *bg_btn = efl_add(EFL_UI_BUTTON_CLASS, panel_win); 268 Eo *backwall_btn = efl_add(EFL_UI_BUTTON_CLASS, panel_win);
269 efl_gfx_position_set(bg_btn, EINA_POSITION2D(0, 100)); 269 efl_gfx_position_set(backwall_btn, EINA_POSITION2D(0, 100));
270 efl_gfx_size_set(bg_btn, EINA_SIZE2D(150, 50)); 270 efl_gfx_size_set(backwall_btn, EINA_SIZE2D(150, 50));
271 efl_text_set(bg_btn, "Bg Set"); 271 efl_text_set(backwall_btn, "Backwall Set");
272 efl_event_callback_add(bg_btn, EFL_UI_EVENT_CLICKED, _bg_cb, p_data); 272 efl_event_callback_add(backwall_btn, EFL_UI_EVENT_CLICKED, _backwall_cb, p_data);
273 273
274 Eo *timeout_btn = efl_add(EFL_UI_BUTTON_CLASS, panel_win); 274 Eo *timeout_btn = efl_add(EFL_UI_BUTTON_CLASS, panel_win);
275 efl_text_set(timeout_btn, "Timeout Set"); 275 efl_text_set(timeout_btn, "Timeout Set");
@@ -453,7 +453,7 @@ test_ui_popup_anchor(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
453 453
454 Eo *efl_ui_popup = efl_add(EFL_UI_POPUP_ANCHOR_CLASS, win); 454 Eo *efl_ui_popup = efl_add(EFL_UI_POPUP_ANCHOR_CLASS, win);
455 455
456 efl_ui_popup_bg_repeat_events_set(efl_ui_popup, EINA_TRUE); 456 efl_ui_popup_backwall_repeat_events_set(efl_ui_popup, EINA_TRUE);
457 457
458 //Default align priority order is top, left, right, bottom, center. 458 //Default align priority order is top, left, right, bottom, center.
459 efl_ui_popup_anchor_align_priority_set(efl_ui_popup, EFL_UI_POPUP_ALIGN_TOP, 459 efl_ui_popup_anchor_align_priority_set(efl_ui_popup, EFL_UI_POPUP_ALIGN_TOP,