summaryrefslogtreecommitdiff
path: root/reference/c/ui/src/ui_container.c
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2017-12-20 14:50:08 +0000
committerAndy Williams <andy@andywilliams.me>2017-12-20 14:50:08 +0000
commit5ddb82e0da0aa579aa765c5cf490982910953fd7 (patch)
tree727314a9fd749b10e2b3b7a1f3dc44f2fa84c6d3 /reference/c/ui/src/ui_container.c
parentdef8a4e5783227898713e969e0276f9ef25d86c7 (diff)
ui: Update for API grid->table
Diffstat (limited to 'reference/c/ui/src/ui_container.c')
-rw-r--r--reference/c/ui/src/ui_container.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/reference/c/ui/src/ui_container.c b/reference/c/ui/src/ui_container.c
index 17e53327..b18d10d3 100644
--- a/reference/c/ui/src/ui_container.c
+++ b/reference/c/ui/src/ui_container.c
@@ -27,30 +27,30 @@ _gui_quit_cb(void *data EINA_UNUSED, const Efl_Event *event EINA_UNUSED)
27 efl_exit(0); 27 efl_exit(0);
28} 28}
29 29
30// Load a simple grid layout into the window 30// Load a simple table layout into the window
31static Efl_Ui_Grid * 31static Efl_Ui_Table *
32_ui_grid_setup(Efl_Ui_Win *win) 32_ui_table_setup(Efl_Ui_Win *win)
33{ 33{
34 Efl_Ui_Grid *grid; 34 Efl_Ui_Table *table;
35 int i; 35 int i;
36 36
37 grid = efl_add(EFL_UI_GRID_CLASS, win); 37 table = efl_add(EFL_UI_TABLE_CLASS, win);
38 38
39 efl_pack_grid_columns_set(grid, 2); 39 efl_pack_table_columns_set(table, 2);
40 efl_pack_grid_direction_set(grid, EFL_UI_DIR_RIGHT, EFL_UI_DIR_DOWN); 40 efl_pack_table_direction_set(table, EFL_UI_DIR_RIGHT, EFL_UI_DIR_DOWN);
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"),
44 efl_pack_grid(grid, efl_added, 0, 2, 2, 1)); 44 efl_pack_table(table, efl_added, 0, 2, 2, 1));
45 45
46 for (i = 1; i <= 4; i++) 46 for (i = 1; i <= 4; i++)
47 { 47 {
48 efl_add(EFL_UI_BUTTON_CLASS, win, 48 efl_add(EFL_UI_BUTTON_CLASS, win,
49 efl_text_set(efl_added, eina_slstr_printf("Grid %d", i)), 49 efl_text_set(efl_added, eina_slstr_printf("Table %d", i)),
50 efl_pack(grid, efl_added)); 50 efl_pack(table, efl_added));
51 } 51 }
52 52
53 return grid; 53 return table;
54} 54}
55 55
56// Load some boxes - a horizontal one for the window layout and a vertical 56// Load some boxes - a horizontal one for the window layout and a vertical
@@ -92,7 +92,7 @@ _ui_panes_setup(Efl_Ui_Win *win)
92 efl_content_set(efl_part(split, "second"), efl_added), 92 efl_content_set(efl_part(split, "second"), efl_added),
93 efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL), 93 efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL),
94 efl_ui_panes_split_ratio_set(efl_added, 0.85)); 94 efl_ui_panes_split_ratio_set(efl_added, 0.85));
95 efl_content_set(efl_part(horiz_split, "first"), _ui_grid_setup(win)); 95 efl_content_set(efl_part(horiz_split, "first"), _ui_table_setup(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"),