summaryrefslogtreecommitdiff
path: root/reference
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-03-02 10:38:07 -0500
committerMike Blumenkrantz <zmike@samsung.com>2019-03-02 10:38:07 -0500
commitd16b7e48bc8a4a8d9cfc3cac2ab574a0c374f401 (patch)
treed9fd47a424e6318e018066dab49a94f64bb9438f /reference
parent780ebf91c5f86c5cb9ce8ad997fc561ab4a3ea97 (diff)
fix examples build for latest efl
Diffstat (limited to 'reference')
-rw-r--r--reference/c/ui/src/focus_main.c6
-rw-r--r--reference/c/ui/src/ui_container.c4
-rw-r--r--reference/c/ui/src/ui_sizing.c4
-rw-r--r--reference/c/ui/src/ui_translation.c2
4 files changed, 8 insertions, 8 deletions
diff --git a/reference/c/ui/src/focus_main.c b/reference/c/ui/src/focus_main.c
index 9eaf79c6..676add73 100644
--- a/reference/c/ui/src/focus_main.c
+++ b/reference/c/ui/src/focus_main.c
@@ -40,7 +40,7 @@ _gui_setup()
40 40
41 box = efl_add(EFL_UI_BOX_CLASS, win, 41 box = efl_add(EFL_UI_BOX_CLASS, win,
42 efl_content_set(win, efl_added), 42 efl_content_set(win, efl_added),
43 efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(360, 240))); 43 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(360, 240)));
44 44
45 efl_add(EFL_UI_TEXT_CLASS, box, 45 efl_add(EFL_UI_TEXT_CLASS, box,
46 efl_text_set(efl_added, "Label"), 46 efl_text_set(efl_added, "Label"),
@@ -51,7 +51,7 @@ _gui_setup()
51 51
52 hbox = efl_add(EFL_UI_BOX_CLASS, box, 52 hbox = efl_add(EFL_UI_BOX_CLASS, box,
53 efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL), 53 efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL),
54 efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.1), 54 efl_gfx_hint_weight_set(efl_added, 1.0, 0.1),
55 efl_pack(box, efl_added)); 55 efl_pack(box, efl_added));
56 56
57 about = efl_add(EFL_UI_BUTTON_CLASS, hbox, 57 about = efl_add(EFL_UI_BUTTON_CLASS, hbox,
@@ -70,7 +70,7 @@ _gui_setup()
70 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, 70 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED,
71 _gui_quit_clicked_cb, efl_added)); 71 _gui_quit_clicked_cb, efl_added));
72 72
73 efl_ui_focus_util_focus(EFL_UI_FOCUS_UTIL_CLASS, about); 73 efl_ui_focus_util_focus(about);
74} 74}
75 75
76EAPI_MAIN void 76EAPI_MAIN void
diff --git a/reference/c/ui/src/ui_container.c b/reference/c/ui/src/ui_container.c
index 21156579..3775b5f2 100644
--- a/reference/c/ui/src/ui_container.c
+++ b/reference/c/ui/src/ui_container.c
@@ -71,7 +71,7 @@ _ui_boxes_setup(Efl_Ui_Win *win)
71 efl_pack(box, efl_added)); 71 efl_pack(box, efl_added));
72 72
73 if (i == 2) 73 if (i == 2)
74 efl_gfx_size_hint_max_set(button, EINA_SIZE2D(100, 50)); 74 efl_gfx_hint_size_max_set(button, EINA_SIZE2D(100, 50));
75 } 75 }
76 76
77 return box; 77 return box;
@@ -96,7 +96,7 @@ _ui_panes_setup(Efl_Ui_Win *win)
96 96
97 efl_add(EFL_UI_BUTTON_CLASS, win, 97 efl_add(EFL_UI_BUTTON_CLASS, win,
98 efl_text_set(efl_added, "Quit"), 98 efl_text_set(efl_added, "Quit"),
99 efl_gfx_size_hint_max_set(efl_added, EINA_SIZE2D(150, 30)), 99 efl_gfx_hint_size_max_set(efl_added, EINA_SIZE2D(150, 30)),
100 efl_content_set(efl_part(horiz_split, "second"), efl_added), 100 efl_content_set(efl_part(horiz_split, "second"), efl_added),
101 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, 101 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED,
102 _gui_quit_cb, efl_added)); 102 _gui_quit_cb, efl_added));
diff --git a/reference/c/ui/src/ui_sizing.c b/reference/c/ui/src/ui_sizing.c
index f2b8a769..80e50b51 100644
--- a/reference/c/ui/src/ui_sizing.c
+++ b/reference/c/ui/src/ui_sizing.c
@@ -45,12 +45,12 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
45 efl_add(EFL_UI_BUTTON_CLASS, win, 45 efl_add(EFL_UI_BUTTON_CLASS, win,
46 efl_text_set(efl_added, "Small"), 46 efl_text_set(efl_added, "Small"),
47 efl_pack_end(box, efl_added), 47 efl_pack_end(box, efl_added),
48 efl_gfx_size_hint_max_set(efl_added, EINA_SIZE2D(50, 50))); 48 efl_gfx_hint_size_max_set(efl_added, EINA_SIZE2D(50, 50)));
49 49
50 efl_add(EFL_UI_BUTTON_CLASS, win, 50 efl_add(EFL_UI_BUTTON_CLASS, win,
51 efl_text_set(efl_added, "Big Button"), 51 efl_text_set(efl_added, "Big Button"),
52 efl_pack_end(box, efl_added), 52 efl_pack_end(box, efl_added),
53 efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(100, 100))); 53 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 100)));
54 54
55 efl_gfx_entity_size_set(win, EINA_SIZE2D(320, 320)); 55 efl_gfx_entity_size_set(win, EINA_SIZE2D(320, 320));
56} 56}
diff --git a/reference/c/ui/src/ui_translation.c b/reference/c/ui/src/ui_translation.c
index 02ba9a1a..91cafc06 100644
--- a/reference/c/ui/src/ui_translation.c
+++ b/reference/c/ui/src/ui_translation.c
@@ -55,7 +55,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
55 efl_add(EFL_UI_BUTTON_CLASS, win, 55 efl_add(EFL_UI_BUTTON_CLASS, win,
56 efl_ui_l10n_text_set(efl_added, "Quit", _TEXT_DOMAIN), 56 efl_ui_l10n_text_set(efl_added, "Quit", _TEXT_DOMAIN),
57 efl_pack_end(box, efl_added), 57 efl_pack_end(box, efl_added),
58 efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(100, 100)), 58 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 100)),
59 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, 59 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED,
60 _gui_quit_cb, efl_added)); 60 _gui_quit_cb, efl_added));
61 61