summaryrefslogtreecommitdiff
path: root/reference/c/ui/src/ui_container.c
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-10-03 12:19:03 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-10-03 12:19:03 +0200
commitb8fd0c3b74d5a7c9db92c187daddfdf2a3add4c9 (patch)
tree61700070f602ca1e66370b9aa2679d6ed0ade666 /reference/c/ui/src/ui_container.c
parent0a23c904cbfd702d52e2cab260b40ad06d6b0f58 (diff)
Adapt examples to latest Unified API changes
Efl.Ui.Text headers have to be manually included for now, since they still depend on Legacy headers. Padding API has lost a parameter.
Diffstat (limited to 'reference/c/ui/src/ui_container.c')
-rw-r--r--reference/c/ui/src/ui_container.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/reference/c/ui/src/ui_container.c b/reference/c/ui/src/ui_container.c
index 166a458a..81288a8c 100644
--- a/reference/c/ui/src/ui_container.c
+++ b/reference/c/ui/src/ui_container.c
@@ -1,8 +1,9 @@
1#define EFL_BETA_API_SUPPORT 1 1#define EFL_BETA_API_SUPPORT 1
2 2
3#include <Eina.h>
4#include <Elementary.h> 3#include <Elementary.h>
5#include <Efl_Ui.h> 4#include <Efl_Ui.h>
5// Temporary workaround until Unified Text stops using Legacy classes internally
6#include <efl_ui_text.eo.h>
6 7
7/* 8/*
8 * Efl.UI container exmaples. 9 * Efl.UI container exmaples.
@@ -61,7 +62,7 @@ _ui_boxes_setup(Efl_Ui_Win *win)
61 int i; 62 int i;
62 63
63 box = efl_add(EFL_UI_BOX_CLASS, win, 64 box = efl_add(EFL_UI_BOX_CLASS, win,
64 efl_gfx_arrangement_content_padding_set(efl_added, 5, 0, EINA_TRUE)); 65 efl_gfx_arrangement_content_padding_set(efl_added, 5, 0));
65 66
66 for (i = 1; i <= 4; i++) 67 for (i = 1; i <= 4; i++)
67 { 68 {