summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2016-03-22 13:09:27 +0200
committerDaniel Zaoui <daniel.zaoui@samsung.com>2016-03-22 13:10:08 +0200
commit3642ac66f667123bdccb01227d1ffb217f9230d2 (patch)
tree4bd77e1862ae13d11ce5ad137e7e8ab6601b460a /legacy
parent55a61d91ed45995bc8b0ee15929e7d50b71f7b1b (diff)
Panes: adapt test to for more API coverage
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/src/bin/test_panes.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/legacy/elementary/src/bin/test_panes.c b/legacy/elementary/src/bin/test_panes.c
index bd5775a64a..27d9535045 100644
--- a/legacy/elementary/src/bin/test_panes.c
+++ b/legacy/elementary/src/bin/test_panes.c
@@ -57,6 +57,8 @@ test_panes(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_inf
57 57
58 panes = elm_panes_add(win); 58 panes = elm_panes_add(win);
59 evas_object_size_hint_weight_set(panes, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 59 evas_object_size_hint_weight_set(panes, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
60 elm_panes_content_left_min_size_set(panes, 100);
61 elm_panes_content_left_size_set(panes, 0.7);
60 elm_win_resize_object_add(win, panes); 62 elm_win_resize_object_add(win, panes);
61 evas_object_show(panes); 63 evas_object_show(panes);
62 64
@@ -68,13 +70,15 @@ test_panes(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_inf
68 70
69 // add left button 71 // add left button
70 bt = elm_button_add(win); 72 bt = elm_button_add(win);
71 elm_object_text_set(bt, "Left"); 73 elm_object_text_set(bt, "Left - min size 100 - size 70%");
72 evas_object_show(bt); 74 evas_object_show(bt);
73 elm_object_part_content_set(panes, "left", bt); 75 elm_object_part_content_set(panes, "left", bt);
74 76
75 // add panes 77 // add panes
76 panes_h = elm_panes_add(win); 78 panes_h = elm_panes_add(win);
77 elm_panes_horizontal_set(panes_h, EINA_TRUE); 79 elm_panes_horizontal_set(panes_h, EINA_TRUE);
80 elm_panes_content_right_min_size_set(panes_h, 100);
81 elm_panes_content_right_size_set(panes_h, 0.3);
78 evas_object_show(panes_h); 82 evas_object_show(panes_h);
79 83
80 evas_object_smart_callback_add(panes_h, "clicked", _clicked, panes_h); 84 evas_object_smart_callback_add(panes_h, "clicked", _clicked, panes_h);
@@ -92,7 +96,7 @@ test_panes(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_inf
92 96
93 // add down button 97 // add down button
94 bt = elm_button_add(win); 98 bt = elm_button_add(win);
95 elm_object_text_set(bt, "Down"); 99 elm_object_text_set(bt, "Down - min size 100 size 30%");
96 evas_object_show(bt); 100 evas_object_show(bt);
97 elm_object_part_content_set(panes_h, "bottom", bt); 101 elm_object_part_content_set(panes_h, "bottom", bt);
98 102