aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_table.c
diff options
context:
space:
mode:
authorDavide Andreoli <dave@gurumeditation.it>2009-08-13 22:41:43 +0000
committerDavide Andreoli <dave@gurumeditation.it>2009-08-13 22:41:43 +0000
commitcf6f01b171e2434c139cc9c34da23dd31757d28a (patch)
tree50510a3effef269a921800c12521bfe39c0b762d /legacy/elementary/src/bin/test_table.c
parentelm_list: setters for label, icon and end. (diff)
downloadefl-cf6f01b171e2434c139cc9c34da23dd31757d28a.tar.gz
* Split up elementary test.c in several files, one per widget
SVN revision: 41749
Diffstat (limited to 'legacy/elementary/src/bin/test_table.c')
-rw-r--r--legacy/elementary/src/bin/test_table.c65
1 files changed, 65 insertions, 0 deletions
diff --git a/legacy/elementary/src/bin/test_table.c b/legacy/elementary/src/bin/test_table.c
new file mode 100644
index 0000000000..46504aa873
--- /dev/null
+++ b/legacy/elementary/src/bin/test_table.c
@@ -0,0 +1,65 @@
+#include <Elementary.h>
+
+void
+test_table(void *data, Evas_Object *obj, void *event_info)
+{
+ Evas_Object *win, *bg, *tb, *bt;
+
+ win = elm_win_add(NULL, "table", ELM_WIN_BASIC);
+ elm_win_title_set(win, "Table");
+ elm_win_autodel_set(win, 1);
+
+ bg = elm_bg_add(win);
+ evas_object_size_hint_weight_set(bg, 1.0, 1.0);
+ 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, 1.0, 1.0);
+ evas_object_show(tb);
+
+ bt = elm_button_add(win);
+ elm_button_label_set(bt, "Button 1");
+ evas_object_size_hint_weight_set(bt, 1.0, 1.0);
+ evas_object_size_hint_align_set(bt, -1.0, -1.0);
+ elm_table_pack(tb, bt, 0, 0, 1, 1);
+ evas_object_show(bt);
+
+ bt = elm_button_add(win);
+ elm_button_label_set(bt, "Button 2");
+ evas_object_size_hint_weight_set(bt, 1.0, 1.0);
+ evas_object_size_hint_align_set(bt, -1.0, -1.0);
+ elm_table_pack(tb, bt, 1, 0, 1, 1);
+ evas_object_show(bt);
+
+ bt = elm_button_add(win);
+ elm_button_label_set(bt, "Button 3");
+ evas_object_size_hint_weight_set(bt, 1.0, 1.0);
+ evas_object_size_hint_align_set(bt, -1.0, -1.0);
+ elm_table_pack(tb, bt, 2, 0, 1, 1);
+ evas_object_show(bt);
+
+ bt = elm_button_add(win);
+ elm_button_label_set(bt, "Button 4");
+ evas_object_size_hint_weight_set(bt, 1.0, 1.0);
+ evas_object_size_hint_align_set(bt, -1.0, -1.0);
+ elm_table_pack(tb, bt, 0, 1, 2, 1);
+ evas_object_show(bt);
+
+ bt = elm_button_add(win);
+ elm_button_label_set(bt, "Button 5");
+ evas_object_size_hint_weight_set(bt, 1.0, 1.0);
+ evas_object_size_hint_align_set(bt, -1.0, -1.0);
+ elm_table_pack(tb, bt, 2, 1, 1, 3);
+ evas_object_show(bt);
+
+ bt = elm_button_add(win);
+ elm_button_label_set(bt, "Button 6");
+ evas_object_size_hint_weight_set(bt, 1.0, 1.0);
+ evas_object_size_hint_align_set(bt, -1.0, -1.0);
+ elm_table_pack(tb, bt, 0, 2, 2, 2);
+ evas_object_show(bt);
+
+ evas_object_show(win);
+}