aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_table.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-02 06:20:28 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-02 06:20:28 +0000
commit7f2fc8ef80fbce254730f9823e356a9fdb215340 (patch)
tree7e339c26d0ebc9d662db18ff2a971a170572ce9f /legacy/elementary/src/bin/test_table.c
parentRevert a wrong commit. Un-wanted files are committed together. (diff)
downloadefl-7f2fc8ef80fbce254730f9823e356a9fdb215340.tar.gz
elm bin: Use convenient utility function elm_win_util_standard_add()
instead of elm_win_add() + elm_bg_add(). This is for normal style (ELM_WIN_BASIC) window. SVN revision: 69848
Diffstat (limited to 'legacy/elementary/src/bin/test_table.c')
-rw-r--r--legacy/elementary/src/bin/test_table.c70
1 files changed, 14 insertions, 56 deletions
diff --git a/legacy/elementary/src/bin/test_table.c b/legacy/elementary/src/bin/test_table.c
index 4c19c8244f..4f406087ea 100644
--- a/legacy/elementary/src/bin/test_table.c
+++ b/legacy/elementary/src/bin/test_table.c
@@ -6,17 +6,11 @@
void
test_table(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *tb, *bt;
+ Evas_Object *win, *tb, *bt;
- win = elm_win_add(NULL, "table", ELM_WIN_BASIC);
- elm_win_title_set(win, "Table");
+ win = elm_win_util_standard_add("table", "Table");
elm_win_autodel_set(win, EINA_TRUE);
- bg = elm_bg_add(win);
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(win, bg);
- evas_object_show(bg);
-
tb = elm_table_add(win);
elm_win_resize_object_add(win, tb);
evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
@@ -70,17 +64,11 @@ test_table(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
void
test_table2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *tb, *bt;
+ Evas_Object *win, *tb, *bt;
- win = elm_win_add(NULL, "table2", ELM_WIN_BASIC);
- elm_win_title_set(win, "Table Homogeneous");
+ win = elm_win_util_standard_add("table2", "Table Homogeneous");
elm_win_autodel_set(win, EINA_TRUE);
- bg = elm_bg_add(win);
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(win, bg);
- evas_object_show(bg);
-
tb = elm_table_add(win);
elm_table_homogeneous_set(tb, EINA_TRUE);
elm_win_resize_object_add(win, tb);
@@ -146,17 +134,11 @@ my_tb_ch(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
void
test_table3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *tb, *bt;
+ Evas_Object *win, *tb, *bt;
- win = elm_win_add(NULL, "table3", ELM_WIN_BASIC);
- elm_win_title_set(win, "Table 3");
+ win = elm_win_util_standard_add("table3", "Table 3");
elm_win_autodel_set(win, EINA_TRUE);
- bg = elm_bg_add(win);
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(win, bg);
- evas_object_show(bg);
-
tb = elm_table_add(win);
elm_win_resize_object_add(win, tb);
evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
@@ -196,17 +178,11 @@ test_table3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
void
test_table4(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *tb, *bt;
+ Evas_Object *win, *tb, *bt;
- win = elm_win_add(NULL, "table4", ELM_WIN_BASIC);
- elm_win_title_set(win, "Table 4");
+ win = elm_win_util_standard_add("table4", "Table 4");
elm_win_autodel_set(win, EINA_TRUE);
- bg = elm_bg_add(win);
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(win, bg);
- evas_object_show(bg);
-
tb = elm_table_add(win);
elm_win_resize_object_add(win, tb);
evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
@@ -246,17 +222,11 @@ test_table4(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
void
test_table5(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *tb, *bt;
+ Evas_Object *win, *tb, *bt;
- win = elm_win_add(NULL, "table5", ELM_WIN_BASIC);
- elm_win_title_set(win, "Table 5");
+ win = elm_win_util_standard_add("table5", "Table 5");
elm_win_autodel_set(win, EINA_TRUE);
- bg = elm_bg_add(win);
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(win, bg);
- evas_object_show(bg);
-
tb = elm_table_add(win);
elm_table_homogeneous_set(tb, EINA_TRUE);
elm_win_resize_object_add(win, tb);
@@ -304,17 +274,11 @@ test_table5(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
void
test_table6(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *tb, *bt;
+ Evas_Object *win, *tb, *bt;
- win = elm_win_add(NULL, "table6", ELM_WIN_BASIC);
- elm_win_title_set(win, "Table 6");
+ win = elm_win_util_standard_add("table6", "Table 6");
elm_win_autodel_set(win, EINA_TRUE);
- bg = elm_bg_add(win);
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(win, bg);
- evas_object_show(bg);
-
tb = elm_table_add(win);
elm_table_homogeneous_set(tb, EINA_TRUE);
elm_win_resize_object_add(win, tb);
@@ -369,17 +333,11 @@ test_table6(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
void
test_table7(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *tb, *bt;
+ Evas_Object *win, *tb, *bt;
- win = elm_win_add(NULL, "table7", ELM_WIN_BASIC);
- elm_win_title_set(win, "Table 7");
+ win = elm_win_util_standard_add("table7", "Table 7");
elm_win_autodel_set(win, EINA_TRUE);
- bg = elm_bg_add(win);
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(win, bg);
- evas_object_show(bg);
-
tb = elm_table_add(win);
elm_table_padding_set(tb, 10, 20);
elm_win_resize_object_add(win, tb);