summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-02 02:37:05 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-02 02:37:05 +0000
commitf67e38f191463adde632e67405a8b8668a5c0a6c (patch)
tree5b27dbba6bce2fd81738df709ef62d612a836d05 /src/bin
parentf956d25039c8e2873f8d86906cc175d74501071a (diff)
elm genlist: Changed internal variables correctly. Patch by Hyoyoung
Chang <hyoyoung@gmail.com> On Fri, Mar 30, 2012 at 5:17 PM, Hyoyoung Chang <hyoyoung@gmail.com> wrote: > I talked with seoz. and agreed with previous naming changing is insufficient. > > so changed like this > "mode_" -> "deco_it_" > "edit_" -> "deco_all_" > > Thanks > > On Fri, Mar 30, 2012 at 3:33 PM, Hyoyoung Chang <hyoyoung@gmail.com> wrote: >> Dear all, >> >> After edit mode naming is changed, some legacy naming is remained. >> I changed naming to follow API naming changes. >> >> "edit_" -> "deco_" >> and also some explicit edc part names are changed. >> >> Some naming are remained as is, I'll fix at next patches. >> >> Thanks. > SVN revision: 69836
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_genlist.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c
index cc9986ea9..f3f583ca1 100644
--- a/src/bin/test_genlist.c
+++ b/src/bin/test_genlist.c
@@ -2387,9 +2387,9 @@ Evas_Object *gl15_content_get(void *data, Evas_Object *obj, const char *part)
2387 2387
2388 // "edit_default" EDC layout is like below. each part is swallow part. 2388 // "edit_default" EDC layout is like below. each part is swallow part.
2389 // the existing item is swllowed to elm.swallow.edit.content part. 2389 // the existing item is swllowed to elm.swallow.edit.content part.
2390 // ---------------------------------------------------------------- 2390 // --------------------------------------------------------------------
2391 // | elm.edit.icon.1 | elm.swallow.edit.content | elm.edit.icon,2 | 2391 // | elm.edit.icon.1 | elm.swallow.decorate.content | elm.edit.icon,2 |
2392 // ---------------------------------------------------------------- 2392 // --------------------------------------------------------------------
2393 2393
2394 if (!strcmp(part, "elm.swallow.end")) 2394 if (!strcmp(part, "elm.swallow.end"))
2395 { 2395 {
@@ -2434,7 +2434,7 @@ gl15_sel(void *data, Evas_Object *obj, void *event_info __UNUSED__)
2434} 2434}
2435 2435
2436static void 2436static void
2437gl15_edit_mode(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 2437gl15_deco_all_mode(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
2438{ 2438{
2439 elm_genlist_decorate_mode_set(data, EINA_TRUE); 2439 elm_genlist_decorate_mode_set(data, EINA_TRUE);
2440 elm_genlist_select_mode_set(data, ELM_OBJECT_SELECT_MODE_ALWAYS); 2440 elm_genlist_select_mode_set(data, ELM_OBJECT_SELECT_MODE_ALWAYS);
@@ -2460,7 +2460,7 @@ test_genlist15(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i
2460 int i; 2460 int i;
2461 static Testitem tit[100]; 2461 static Testitem tit[100];
2462 2462
2463 win = elm_win_util_standard_add("genlist-edit-mode", "Genlist Edit Mode"); 2463 win = elm_win_util_standard_add("genlist-decorate-all-mode", "Genlist Decorate All Mode");
2464 elm_win_autodel_set(win, EINA_TRUE); 2464 elm_win_autodel_set(win, EINA_TRUE);
2465 2465
2466 bx = elm_box_add(win); 2466 bx = elm_box_add(win);
@@ -2502,8 +2502,8 @@ test_genlist15(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i
2502 evas_object_size_hint_align_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL); 2502 evas_object_size_hint_align_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL);
2503 2503
2504 bt = elm_button_add(win); 2504 bt = elm_button_add(win);
2505 elm_object_text_set(bt, "Edit mode"); 2505 elm_object_text_set(bt, "Decorate All mode");
2506 evas_object_smart_callback_add(bt, "clicked", gl15_edit_mode, gl); 2506 evas_object_smart_callback_add(bt, "clicked", gl15_deco_all_mode, gl);
2507 evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL); 2507 evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
2508 evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0); 2508 evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
2509 elm_box_pack_end(bx2, bt); 2509 elm_box_pack_end(bx2, bt);