summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-20 17:28:12 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-20 17:28:12 +0000
commitadc99f9b47dffa3a5d7d3cd227c7b371514c3798 (patch)
tree06af98e976794fe6f686a2997af16ec4afb2d867 /src/bin
parent970e90ba3636619ec553282d3f1175513d11fb7a (diff)
elm test_naviframe.c: Revised codes.
SVN revision: 69526
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_naviframe.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/bin/test_naviframe.c b/src/bin/test_naviframe.c
index c116c7eaa..afe995a13 100644
--- a/src/bin/test_naviframe.c
+++ b/src/bin/test_naviframe.c
@@ -181,22 +181,16 @@ _page2(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
181void 181void
182test_naviframe(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 182test_naviframe(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
183{ 183{
184 Evas_Object *win, *bg, *nf, *btn, *content; 184 Evas_Object *win, *nf, *btn, *content;
185 Elm_Object_Item *it; 185 Elm_Object_Item *it;
186 186
187 win = elm_win_add(NULL, "naviframe", ELM_WIN_BASIC); 187 win = elm_win_util_standard_add("naviframe", "Naviframe");
188 elm_win_title_set(win, "Naviframe");
189 elm_win_focus_highlight_enabled_set(win, EINA_TRUE); 188 elm_win_focus_highlight_enabled_set(win, EINA_TRUE);
190 elm_win_autodel_set(win, EINA_TRUE); 189 elm_win_autodel_set(win, EINA_TRUE);
191 190
192 bg = elm_bg_add(win);
193 elm_win_resize_object_add(win, bg);
194 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
195 evas_object_show(bg);
196
197 nf = elm_naviframe_add(win); 191 nf = elm_naviframe_add(win);
198 elm_win_resize_object_add(win, nf);
199 evas_object_size_hint_weight_set(nf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 192 evas_object_size_hint_weight_set(nf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
193 elm_win_resize_object_add(win, nf);
200 evas_object_show(nf); 194 evas_object_show(nf);
201 evas_object_smart_callback_add(nf, "title,clicked", _title_clicked, 0); 195 evas_object_smart_callback_add(nf, "title,clicked", _title_clicked, 0);
202 196