summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/bin/test_naviframe.c
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/elementary/src/bin/test_naviframe.c')
-rw-r--r--legacy/elementary/src/bin/test_naviframe.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/legacy/elementary/src/bin/test_naviframe.c b/legacy/elementary/src/bin/test_naviframe.c
index df4973dfdd..c2d8c8ccbb 100644
--- a/legacy/elementary/src/bin/test_naviframe.c
+++ b/legacy/elementary/src/bin/test_naviframe.c
@@ -54,8 +54,8 @@ _page4(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
54 bt, 54 bt,
55 bt2, 55 bt2,
56 NULL); 56 NULL);
57 elm_object_item_text_part_set(it, "elm.text.subtitle", "Here is sub-title part!"); 57 elm_object_item_text_part_set(it, ELM_NAVIFRAME_ITEM_TEXT_SUBTITLE, "Here is sub-title part!");
58 elm_object_item_content_part_set(it, "elm.swallow.icon", ic); 58 elm_object_item_content_part_set(it, ELM_NAVIFRAME_ITEM_CONTENT_ICON, ic);
59 elm_naviframe_item_title_visible_set(it, EINA_FALSE); 59 elm_naviframe_item_title_visible_set(it, EINA_FALSE);
60 evas_object_smart_callback_add(bt2, "clicked", _title_visible, it); 60 evas_object_smart_callback_add(bt2, "clicked", _title_visible, it);
61} 61}
@@ -93,7 +93,7 @@ _page3(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
93 bt3, 93 bt3,
94 NULL); 94 NULL);
95 elm_object_item_text_part_set(it, "elm.text.subtitle", "Here is sub-title part!"); 95 elm_object_item_text_part_set(it, "elm.text.subtitle", "Here is sub-title part!");
96 elm_object_item_content_part_set(it, "elm.swallow.icon", ic); 96 elm_object_item_content_part_set(it, ELM_NAVIFRAME_ITEM_CONTENT_ICON, ic);
97} 97}
98 98
99void 99void
@@ -123,7 +123,7 @@ _page2(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
123 bt, 123 bt,
124 bt2, 124 bt2,
125 NULL); 125 NULL);
126 elm_object_item_text_part_set(it, "elm.text.subtitle", "Here is sub-title part!"); 126 elm_object_item_text_part_set(it, ELM_NAVIFRAME_ITEM_TEXT_SUBTITLE, "Here is sub-title part!");
127} 127}
128 128
129void 129void
@@ -143,6 +143,7 @@ test_naviframe(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i
143 143
144 nf = elm_naviframe_add(win); 144 nf = elm_naviframe_add(win);
145 elm_win_resize_object_add(win, nf); 145 elm_win_resize_object_add(win, nf);
146 evas_object_size_hint_weight_set(nf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
146 evas_object_show(nf); 147 evas_object_show(nf);
147 evas_object_smart_callback_add(nf, "title,clicked", _title_clicked, 0); 148 evas_object_smart_callback_add(nf, "title,clicked", _title_clicked, 0);
148 149