diff options
author | Xavi Artigas <xavierartigas@yahoo.es> | 2019-05-17 15:26:02 +0200 |
---|---|---|
committer | Xavi Artigas <xavierartigas@yahoo.es> | 2019-05-17 15:26:02 +0200 |
commit | af73959386d622d57718f118f02fd17559be36ee (patch) | |
tree | 27e227800018e06e664da413ba562d0be9aa0576 | |
parent | 836a9edf7370e9f8f1b1e11bf11997ae88598307 (diff) |
Use direction instead of table_direction in table examples
Efl.Ui.Direction.direction is simpler to understand than
Efl.Pack_table.table_direction. Also, the latter might disappear very soon.
-rw-r--r-- | reference/c/ui/src/ui_container.c | 2 | ||||
-rw-r--r-- | reference/csharp/ui/src/ui_container.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/reference/c/ui/src/ui_container.c b/reference/c/ui/src/ui_container.c index e19c2de0..68a48fa9 100644 --- a/reference/c/ui/src/ui_container.c +++ b/reference/c/ui/src/ui_container.c | |||
@@ -37,7 +37,7 @@ _ui_table_setup(Efl_Ui_Win *win) | |||
37 | table = efl_add(EFL_UI_TABLE_CLASS, win); | 37 | table = efl_add(EFL_UI_TABLE_CLASS, win); |
38 | 38 | ||
39 | efl_pack_table_columns_set(table, 2); | 39 | efl_pack_table_columns_set(table, 2); |
40 | efl_pack_table_direction_set(table, EFL_UI_DIR_RIGHT, EFL_UI_DIR_DOWN); | 40 | efl_ui_direction_set(table, EFL_UI_DIR_RIGHT); |
41 | 41 | ||
42 | efl_add(EFL_UI_BUTTON_CLASS, win, | 42 | efl_add(EFL_UI_BUTTON_CLASS, win, |
43 | efl_text_set(efl_added, "Long Button"), | 43 | efl_text_set(efl_added, "Long Button"), |
diff --git a/reference/csharp/ui/src/ui_container.cs b/reference/csharp/ui/src/ui_container.cs index 1ee439ff..3b14bc02 100644 --- a/reference/csharp/ui/src/ui_container.cs +++ b/reference/csharp/ui/src/ui_container.cs | |||
@@ -38,7 +38,7 @@ public class Example : Efl.Csharp.Application | |||
38 | Efl.Ui.Table table = new Efl.Ui.Table(win); | 38 | Efl.Ui.Table table = new Efl.Ui.Table(win); |
39 | // Table with two columns, that get filled left to right, and then top to bottom | 39 | // Table with two columns, that get filled left to right, and then top to bottom |
40 | table.SetTableColumns(2); | 40 | table.SetTableColumns(2); |
41 | table.SetTableDirection(Efl.Ui.Dir.Right, Efl.Ui.Dir.Down); | 41 | table.SetDirection(Efl.Ui.Dir.Right); |
42 | Efl.Ui.Button button; | 42 | Efl.Ui.Button button; |
43 | 43 | ||
44 | for (int i = 1; i <= 4; ++i) | 44 | for (int i = 1; i <= 4; ++i) |