aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_table.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-11-14 10:49:45 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-11-14 10:49:45 +0000
commit264bbe0d8f86f58c224ca22ebd10f3ec20cee1b1 (patch)
tree65085108d45fa60e2aca7286c64efe8713c8ebda /legacy/elementary/src/bin/test_table.c
parentelm conform: Use Evas_Smart_Cb_Description for smart callbacks. (diff)
downloadefl-264bbe0d8f86f58c224ca22ebd10f3ec20cee1b1.tar.gz
elm test: Correct elm_win_resize_object_set() usage. Call evas_object_size_hint_weight_set() before calling elm_win_resize_object_set().
SVN revision: 79281
Diffstat (limited to 'legacy/elementary/src/bin/test_table.c')
-rw-r--r--legacy/elementary/src/bin/test_table.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/legacy/elementary/src/bin/test_table.c b/legacy/elementary/src/bin/test_table.c
index 4f406087ea..a655e30417 100644
--- a/legacy/elementary/src/bin/test_table.c
+++ b/legacy/elementary/src/bin/test_table.c
@@ -12,8 +12,8 @@ test_table(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
elm_win_autodel_set(win, EINA_TRUE);
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);
+ elm_win_resize_object_add(win, tb);
evas_object_show(tb);
bt = elm_button_add(win);
@@ -71,8 +71,8 @@ test_table2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
tb = elm_table_add(win);
elm_table_homogeneous_set(tb, EINA_TRUE);
- elm_win_resize_object_add(win, tb);
evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, tb);
evas_object_show(tb);
bt = elm_button_add(win);
@@ -140,8 +140,8 @@ test_table3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
elm_win_autodel_set(win, EINA_TRUE);
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);
+ elm_win_resize_object_add(win, tb);
evas_object_data_set(win, "tb", tb);
evas_object_show(tb);
@@ -184,8 +184,8 @@ test_table4(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
elm_win_autodel_set(win, EINA_TRUE);
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);
+ elm_win_resize_object_add(win, tb);
evas_object_data_set(win, "tb", tb);
evas_object_show(tb);
@@ -229,8 +229,8 @@ test_table5(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
tb = elm_table_add(win);
elm_table_homogeneous_set(tb, EINA_TRUE);
- elm_win_resize_object_add(win, tb);
evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, tb);
evas_object_show(tb);
bt = elm_button_add(win);
@@ -281,8 +281,8 @@ test_table6(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
tb = elm_table_add(win);
elm_table_homogeneous_set(tb, EINA_TRUE);
- elm_win_resize_object_add(win, tb);
evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, tb);
evas_object_show(tb);
bt = elm_button_add(win);
@@ -340,8 +340,8 @@ test_table7(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
tb = elm_table_add(win);
elm_table_padding_set(tb, 10, 20);
- elm_win_resize_object_add(win, tb);
evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, tb);
evas_object_show(tb);
bt = elm_button_add(win);