aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_table.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-05-26 08:45:20 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-05-26 08:45:20 +0000
commitea4ac075fb47682a9556f93a4e46798cc6b56a24 (patch)
treef7192a9b38fcf67d77a10bfbe2d8ad36fe7e996b /legacy/elementary/src/bin/test_table.c
parentElementary: Removed trailing whitespaces except for some files that (diff)
downloadefl-ea4ac075fb47682a9556f93a4e46798cc6b56a24.tar.gz
add test4 for table
SVN revision: 59696
Diffstat (limited to 'legacy/elementary/src/bin/test_table.c')
-rw-r--r--legacy/elementary/src/bin/test_table.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/legacy/elementary/src/bin/test_table.c b/legacy/elementary/src/bin/test_table.c
index 81e9227c54..a5f86c25f5 100644
--- a/legacy/elementary/src/bin/test_table.c
+++ b/legacy/elementary/src/bin/test_table.c
@@ -193,4 +193,54 @@ test_table3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
evas_object_show(win);
}
+void
+test_table4(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
+{
+ Evas_Object *win, *bg, *tb, *bt;
+
+ win = elm_win_add(NULL, "table4", ELM_WIN_BASIC);
+ elm_win_title_set(win, "Table 4");
+ elm_win_autodel_set(win, 1);
+
+ 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);
+ evas_object_data_set(win, "tb", tb);
+ evas_object_show(tb);
+
+ bt = elm_button_add(win);
+ elm_button_label_set(bt, "Button 1");
+ evas_object_size_hint_weight_set(bt, 0.25, 0.25);
+ evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ elm_table_pack(tb, bt, 0, 0, 1, 1);
+ evas_object_data_set(win, "b1", bt);
+ evas_object_smart_callback_add(bt, "clicked", my_tb_ch, win);
+ evas_object_show(bt);
+
+ bt = elm_button_add(win);
+ elm_button_label_set(bt, "Button 2");
+ evas_object_size_hint_weight_set(bt, 0.75, 0.25);
+ evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ elm_table_pack(tb, bt, 1, 0, 1, 1);
+ evas_object_data_set(win, "b2", bt);
+ evas_object_smart_callback_add(bt, "clicked", my_tb_ch, win);
+ evas_object_show(bt);
+
+ bt = elm_button_add(win);
+ elm_button_label_set(bt, "Button 3");
+ evas_object_size_hint_weight_set(bt, 0.25, 0.75);
+ evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ elm_table_pack(tb, bt, 0, 1, 1, 1);
+ evas_object_data_set(win, "b3", bt);
+ evas_object_smart_callback_add(bt, "clicked", my_tb_ch, win);
+ evas_object_show(bt);
+
+ evas_object_show(win);
+}
+
#endif