xartigas pushed a commit to branch master.

http://git.enlightenment.org/tools/examples.git/commit/?id=af73959386d622d57718f118f02fd17559be36ee

commit af73959386d622d57718f118f02fd17559be36ee
Author: Xavi Artigas <xavierarti...@yahoo.es>
Date:   Fri May 17 15:26:02 2019 +0200

    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.
---
 reference/c/ui/src/ui_container.c       | 2 +-
 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)
    table = efl_add(EFL_UI_TABLE_CLASS, win);
 
    efl_pack_table_columns_set(table, 2);
-   efl_pack_table_direction_set(table, EFL_UI_DIR_RIGHT, EFL_UI_DIR_DOWN);
+   efl_ui_direction_set(table, EFL_UI_DIR_RIGHT);
 
    efl_add(EFL_UI_BUTTON_CLASS, win,
            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
         Efl.Ui.Table table = new Efl.Ui.Table(win);
         // Table with two columns, that get filled left to right, and then top 
to bottom
         table.SetTableColumns(2);
-        table.SetTableDirection(Efl.Ui.Dir.Right, Efl.Ui.Dir.Down);
+        table.SetDirection(Efl.Ui.Dir.Right);
         Efl.Ui.Button button;
 
         for (int i = 1; i <= 4; ++i)

-- 


Reply via email to