summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-07-10 00:30:48 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-07-10 00:30:48 +0900
commit2a62de910f54b4a41154f11a6e7bfe854b053d29 (patch)
treed799b3b1255161b62736e5c55f80f44b18bd984e
parent4bdf40f03900710d16aacee44a0a666766857afc (diff)
test_genlist: removed unnecessary spaces.
-rw-r--r--src/bin/test_genlist.c66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c
index c366a96c4..bba008614 100644
--- a/src/bin/test_genlist.c
+++ b/src/bin/test_genlist.c
@@ -307,7 +307,7 @@ test_genlist(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
307 itc1 = elm_genlist_item_class_new(); 307 itc1 = elm_genlist_item_class_new();
308 itc1->item_style = "default"; 308 itc1->item_style = "default";
309 itc1->func.text_get = gl_text_get; 309 itc1->func.text_get = gl_text_get;
310 itc1->func.content_get = gl_content_get; 310 itc1->func.content_get = gl_content_get;
311 itc1->func.state_get = gl_state_get; 311 itc1->func.state_get = gl_state_get;
312 itc1->func.del = NULL; 312 itc1->func.del = NULL;
313 313
@@ -363,7 +363,7 @@ my_gl_add(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED
363 363
364 itc1->item_style = "default"; 364 itc1->item_style = "default";
365 itc1->func.text_get = gl_text_get; 365 itc1->func.text_get = gl_text_get;
366 itc1->func.content_get = gl_content_get; 366 itc1->func.content_get = gl_content_get;
367 itc1->func.state_get = gl_state_get; 367 itc1->func.state_get = gl_state_get;
368 itc1->func.del = NULL; 368 itc1->func.del = NULL;
369 369
@@ -391,7 +391,7 @@ my_gl_insert_before(void *data, Evas_Object *obj EINA_UNUSED, void *event_info E
391 391
392 itc1->item_style = "default"; 392 itc1->item_style = "default";
393 itc1->func.text_get = gl_text_get; 393 itc1->func.text_get = gl_text_get;
394 itc1->func.content_get = gl_content_get; 394 itc1->func.content_get = gl_content_get;
395 itc1->func.state_get = gl_state_get; 395 itc1->func.state_get = gl_state_get;
396 itc1->func.del = NULL; 396 itc1->func.del = NULL;
397 397
@@ -427,7 +427,7 @@ my_gl_insert_after(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EI
427 427
428 itc1->item_style = "default"; 428 itc1->item_style = "default";
429 itc1->func.text_get = gl_text_get; 429 itc1->func.text_get = gl_text_get;
430 itc1->func.content_get = gl_content_get; 430 itc1->func.content_get = gl_content_get;
431 itc1->func.state_get = gl_state_get; 431 itc1->func.state_get = gl_state_get;
432 itc1->func.del = NULL; 432 itc1->func.del = NULL;
433 433
@@ -800,7 +800,7 @@ test_genlist3(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
800 800
801 itc2.item_style = "default"; 801 itc2.item_style = "default";
802 itc2.func.text_get = gl2_text_get; 802 itc2.func.text_get = gl2_text_get;
803 itc2.func.content_get = gl2_content_get; 803 itc2.func.content_get = gl2_content_get;
804 itc2.func.state_get = gl2_state_get; 804 itc2.func.state_get = gl2_state_get;
805 itc2.func.del = NULL; 805 itc2.func.del = NULL;
806 806
@@ -950,7 +950,7 @@ test_genlist4(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
950 itc3 = elm_genlist_item_class_new(); 950 itc3 = elm_genlist_item_class_new();
951 itc3->item_style = "default"; 951 itc3->item_style = "default";
952 itc3->func.text_get = gl3_text_get; 952 itc3->func.text_get = gl3_text_get;
953 itc3->func.content_get = gl3_content_get; 953 itc3->func.content_get = gl3_content_get;
954 itc3->func.state_get = gl3_state_get; 954 itc3->func.state_get = gl3_state_get;
955 itc3->func.del = NULL; 955 itc3->func.del = NULL;
956 956
@@ -1165,7 +1165,7 @@ test_genlist5(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
1165 evas_object_show(gl); 1165 evas_object_show(gl);
1166 itc5.item_style = "double_label"; 1166 itc5.item_style = "double_label";
1167 itc5.func.text_get = gl5_text_get; 1167 itc5.func.text_get = gl5_text_get;
1168 itc5.func.content_get = gl5_content_get; 1168 itc5.func.content_get = gl5_content_get;
1169 itc5.func.state_get = gl5_state_get; 1169 itc5.func.state_get = gl5_state_get;
1170 itc5.func.del = NULL; 1170 itc5.func.del = NULL;
1171 1171
@@ -1386,14 +1386,14 @@ test_genlist6(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
1386 itc1 = elm_genlist_item_class_new(); 1386 itc1 = elm_genlist_item_class_new();
1387 itc1->item_style = "default"; 1387 itc1->item_style = "default";
1388 itc1->func.text_get = gl4_text_get; 1388 itc1->func.text_get = gl4_text_get;
1389 itc1->func.content_get = gl4_content_get; 1389 itc1->func.content_get = gl4_content_get;
1390 itc1->func.state_get = gl4_state_get; 1390 itc1->func.state_get = gl4_state_get;
1391 itc1->func.del = gl4_del; 1391 itc1->func.del = gl4_del;
1392 1392
1393 itc4 = elm_genlist_item_class_new(); 1393 itc4 = elm_genlist_item_class_new();
1394 itc4->item_style = "tree_effect"; 1394 itc4->item_style = "tree_effect";
1395 itc4->func.text_get = gl4_text_get; 1395 itc4->func.text_get = gl4_text_get;
1396 itc4->func.content_get = gl4_content_get; 1396 itc4->func.content_get = gl4_content_get;
1397 itc4->func.state_get = gl4_state_get; 1397 itc4->func.state_get = gl4_state_get;
1398 itc4->func.del = gl4_del; 1398 itc4->func.del = gl4_del;
1399 1399
@@ -1514,13 +1514,13 @@ test_genlist7(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
1514 1514
1515 itc2.item_style = "default"; 1515 itc2.item_style = "default";
1516 itc2.func.text_get = gl2_text_get; 1516 itc2.func.text_get = gl2_text_get;
1517 itc2.func.content_get = gl2_content_get; 1517 itc2.func.content_get = gl2_content_get;
1518 itc2.func.state_get = gl2_state_get; 1518 itc2.func.state_get = gl2_state_get;
1519 itc2.func.del = NULL; 1519 itc2.func.del = NULL;
1520 1520
1521 itc7.item_style = "double_label"; 1521 itc7.item_style = "double_label";
1522 itc7.func.text_get = gl5_text_get; 1522 itc7.func.text_get = gl5_text_get;
1523 itc7.func.content_get = gl5_content_get; 1523 itc7.func.content_get = gl5_content_get;
1524 itc7.func.state_get = gl5_state_get; 1524 itc7.func.state_get = gl5_state_get;
1525 itc7.func.del = NULL; 1525 itc7.func.del = NULL;
1526 1526
@@ -1551,7 +1551,7 @@ static Elm_Genlist_Item_Class *itc_group;
1551char *gl8_text_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EINA_UNUSED) 1551char *gl8_text_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EINA_UNUSED)
1552{ 1552{
1553 char buf[256]; 1553 char buf[256];
1554 snprintf(buf, sizeof(buf), "Group Index # %i (Item # %i)", (int)((uintptr_t)data / 10), (int)(uintptr_t)data); 1554 snprintf(buf, sizeof(buf), "Group Index # %i (Item # %i)", (int)((uintptr_t)data / 10), (int)(uintptr_t)data);
1555 return strdup(buf); 1555 return strdup(buf);
1556} 1556}
1557 1557
@@ -1598,14 +1598,14 @@ test_genlist8(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
1598 itc1 = elm_genlist_item_class_new(); 1598 itc1 = elm_genlist_item_class_new();
1599 itc1->item_style = "default"; 1599 itc1->item_style = "default";
1600 itc1->func.text_get = gl_text_get; 1600 itc1->func.text_get = gl_text_get;
1601 itc1->func.content_get = gl_content_get; 1601 itc1->func.content_get = gl_content_get;
1602 itc1->func.state_get = gl_state_get; 1602 itc1->func.state_get = gl_state_get;
1603 itc1->func.del = NULL; 1603 itc1->func.del = NULL;
1604 1604
1605 itc_group = elm_genlist_item_class_new(); 1605 itc_group = elm_genlist_item_class_new();
1606 itc_group->item_style = "group_index"; 1606 itc_group->item_style = "group_index";
1607 itc_group->func.text_get = gl8_text_get; 1607 itc_group->func.text_get = gl8_text_get;
1608 itc_group->func.content_get = NULL; 1608 itc_group->func.content_get = NULL;
1609 itc_group->func.state_get = NULL; 1609 itc_group->func.state_get = NULL;
1610 itc_group->func.del = NULL; 1610 itc_group->func.del = NULL;
1611 1611
@@ -1811,14 +1811,14 @@ test_genlist9(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
1811 itc1 = elm_genlist_item_class_new(); 1811 itc1 = elm_genlist_item_class_new();
1812 itc1->item_style = "default"; 1812 itc1->item_style = "default";
1813 itc1->func.text_get = gl_text_get; 1813 itc1->func.text_get = gl_text_get;
1814 itc1->func.content_get = gl_content_get; 1814 itc1->func.content_get = gl_content_get;
1815 itc1->func.state_get = gl_state_get; 1815 itc1->func.state_get = gl_state_get;
1816 itc1->func.del = NULL; 1816 itc1->func.del = NULL;
1817 1817
1818 itc_group = elm_genlist_item_class_new(); 1818 itc_group = elm_genlist_item_class_new();
1819 itc_group->item_style = "group_index"; 1819 itc_group->item_style = "group_index";
1820 itc_group->func.text_get = gl8_text_get; 1820 itc_group->func.text_get = gl8_text_get;
1821 itc_group->func.content_get = NULL; 1821 itc_group->func.content_get = NULL;
1822 itc_group->func.state_get = NULL; 1822 itc_group->func.state_get = NULL;
1823 itc_group->func.del = NULL; 1823 itc_group->func.del = NULL;
1824 1824
@@ -1978,7 +1978,7 @@ test_genlist10(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
1978 itc10.item_style = "default"; 1978 itc10.item_style = "default";
1979 itc10.decorate_item_style = "mode"; 1979 itc10.decorate_item_style = "mode";
1980 itc10.func.text_get = gl10_text_get; 1980 itc10.func.text_get = gl10_text_get;
1981 itc10.func.content_get = gl10_content_get; 1981 itc10.func.content_get = gl10_content_get;
1982 itc10.func.state_get = gl_state_get; 1982 itc10.func.state_get = gl_state_get;
1983 itc10.func.del = NULL; 1983 itc10.func.del = NULL;
1984 1984
@@ -2102,7 +2102,7 @@ test_genlist11(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
2102 itc1 = elm_genlist_item_class_new(); 2102 itc1 = elm_genlist_item_class_new();
2103 itc1->item_style = "default"; 2103 itc1->item_style = "default";
2104 itc1->func.text_get = gl_text_get; 2104 itc1->func.text_get = gl_text_get;
2105 itc1->func.content_get = gl_content_get; 2105 itc1->func.content_get = gl_content_get;
2106 itc1->func.state_get = gl_state_get; 2106 itc1->func.state_get = gl_state_get;
2107 itc1->func.del = NULL; 2107 itc1->func.del = NULL;
2108 evas_object_smart_callback_add(gl, "moved", (Evas_Smart_Cb)gl_moved, gl); 2108 evas_object_smart_callback_add(gl, "moved", (Evas_Smart_Cb)gl_moved, gl);
@@ -2157,7 +2157,7 @@ test_genlist12(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
2157 itc1 = elm_genlist_item_class_new(); 2157 itc1 = elm_genlist_item_class_new();
2158 itc1->item_style = "message"; 2158 itc1->item_style = "message";
2159 itc1->func.text_get = gl12_text_get; 2159 itc1->func.text_get = gl12_text_get;
2160 itc1->func.content_get = gl_content_get; 2160 itc1->func.content_get = gl_content_get;
2161 itc1->func.state_get = gl_state_get; 2161 itc1->func.state_get = gl_state_get;
2162 itc1->func.del = NULL; 2162 itc1->func.del = NULL;
2163 2163
@@ -2602,7 +2602,7 @@ test_genlist15(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
2602 itc15 = elm_genlist_item_class_new(); 2602 itc15 = elm_genlist_item_class_new();
2603 itc15->item_style = "default"; 2603 itc15->item_style = "default";
2604 itc15->func.text_get = gl15_text_get; 2604 itc15->func.text_get = gl15_text_get;
2605 itc15->func.content_get = gl15_content_get; 2605 itc15->func.content_get = gl15_content_get;
2606 itc15->func.state_get = gl_state_get; 2606 itc15->func.state_get = gl_state_get;
2607 itc15->func.del = gl15_del; 2607 itc15->func.del = gl15_del;
2608 itc15->decorate_all_item_style = "edit"; 2608 itc15->decorate_all_item_style = "edit";
@@ -2897,7 +2897,7 @@ test_genlist17(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
2897 itc17->item_style = "default"; 2897 itc17->item_style = "default";
2898 itc17->decorate_item_style = "mode"; 2898 itc17->decorate_item_style = "mode";
2899 itc17->func.text_get = gl15_text_get; 2899 itc17->func.text_get = gl15_text_get;
2900 itc17->func.content_get = gl15_content_get; 2900 itc17->func.content_get = gl15_content_get;
2901 itc17->func.state_get = gl_state_get; 2901 itc17->func.state_get = gl_state_get;
2902 itc17->func.del = NULL; 2902 itc17->func.del = NULL;
2903 itc17->decorate_all_item_style = "edit"; 2903 itc17->decorate_all_item_style = "edit";
@@ -3075,7 +3075,7 @@ test_genlist18(void *data EINA_UNUSED,
3075 itc18 = elm_genlist_item_class_new(); 3075 itc18 = elm_genlist_item_class_new();
3076 itc18->item_style = "tree_effect"; /* item/tree_effect */ 3076 itc18->item_style = "tree_effect"; /* item/tree_effect */
3077 itc18->func.text_get = gl15_text_get; 3077 itc18->func.text_get = gl15_text_get;
3078 itc18->func.content_get = gl15_content_get; 3078 itc18->func.content_get = gl15_content_get;
3079 itc18->func.state_get = gl_state_get; 3079 itc18->func.state_get = gl_state_get;
3080 itc18->func.del = gl18_del; 3080 itc18->func.del = gl18_del;
3081 itc18->decorate_all_item_style = "edit"; 3081 itc18->decorate_all_item_style = "edit";
@@ -3084,7 +3084,7 @@ test_genlist18(void *data EINA_UNUSED,
3084 itc18_tree = elm_genlist_item_class_new(); 3084 itc18_tree = elm_genlist_item_class_new();
3085 itc18_tree->item_style = "tree_effect"; /* tree/tree_effect */ 3085 itc18_tree->item_style = "tree_effect"; /* tree/tree_effect */
3086 itc18_tree->func.text_get = gl15_text_get; 3086 itc18_tree->func.text_get = gl15_text_get;
3087 itc18_tree->func.content_get = gl15_content_get; 3087 itc18_tree->func.content_get = gl15_content_get;
3088 itc18_tree->func.state_get = gl_state_get; 3088 itc18_tree->func.state_get = gl_state_get;
3089 itc18_tree->func.del = gl18_del; 3089 itc18_tree->func.del = gl18_del;
3090 itc18_tree->decorate_all_item_style = "edit"; 3090 itc18_tree->decorate_all_item_style = "edit";
@@ -3192,7 +3192,7 @@ test_genlist19(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
3192 itc1 = elm_genlist_item_class_new(); 3192 itc1 = elm_genlist_item_class_new();
3193 itc1->item_style = "full"; 3193 itc1->item_style = "full";
3194 itc1->func.text_get = NULL; 3194 itc1->func.text_get = NULL;
3195 itc1->func.content_get = gl_content_full_get; 3195 itc1->func.content_get = gl_content_full_get;
3196 itc1->func.state_get = gl_state_get; 3196 itc1->func.state_get = gl_state_get;
3197 itc1->func.del = NULL; 3197 itc1->func.del = NULL;
3198 3198
@@ -3450,7 +3450,7 @@ test_genlist_multi_select(void *data EINA_UNUSED,
3450 itc = elm_genlist_item_class_new(); 3450 itc = elm_genlist_item_class_new();
3451 itc->item_style = "default"; 3451 itc->item_style = "default";
3452 itc->func.text_get = gl_text_get; 3452 itc->func.text_get = gl_text_get;
3453 itc->func.content_get = gl_content_get; 3453 itc->func.content_get = gl_content_get;
3454 itc->func.state_get = gl_state_get; 3454 itc->func.state_get = gl_state_get;
3455 itc->func.del = NULL; 3455 itc->func.del = NULL;
3456 3456
@@ -3579,9 +3579,9 @@ _gl20_item_class_create(const char *item_style)
3579 Elm_Genlist_Item_Class * itc = elm_genlist_item_class_new(); 3579 Elm_Genlist_Item_Class * itc = elm_genlist_item_class_new();
3580 itc->item_style = item_style; 3580 itc->item_style = item_style;
3581 itc->func.text_get = _gl20_text_get; 3581 itc->func.text_get = _gl20_text_get;
3582 itc->func.content_get = gl_content_get; 3582 itc->func.content_get = gl_content_get;
3583 itc->func.state_get = gl_state_get; 3583 itc->func.state_get = gl_state_get;
3584 itc->func.del = NULL; 3584 itc->func.del = NULL;
3585 return itc; 3585 return itc;
3586} 3586}
3587 3587
@@ -3874,7 +3874,7 @@ test_genlist_del(void *data EINA_UNUSED,
3874 itc = elm_genlist_item_class_new(); 3874 itc = elm_genlist_item_class_new();
3875 itc->item_style = "default"; 3875 itc->item_style = "default";
3876 itc->func.text_get = _gl_del_text_get; 3876 itc->func.text_get = _gl_del_text_get;
3877 itc->func.content_get = gl_content_get; 3877 itc->func.content_get = gl_content_get;
3878 itc->func.state_get = NULL; 3878 itc->func.state_get = NULL;
3879 itc->func.del = _gl_del_del_cb; 3879 itc->func.del = _gl_del_del_cb;
3880 evas_object_event_callback_add(win, EVAS_CALLBACK_DEL, 3880 evas_object_event_callback_add(win, EVAS_CALLBACK_DEL,
@@ -3949,7 +3949,7 @@ gl_focus_content_get(void *data, Evas_Object *obj, const char *part)
3949 3949
3950static void 3950static void
3951_gl_focus_item_loop_enable_changed_cb(void *data, Evas_Object *obj, 3951_gl_focus_item_loop_enable_changed_cb(void *data, Evas_Object *obj,
3952 void *event_info EINA_UNUSED) 3952 void *event_info EINA_UNUSED)
3953{ 3953{
3954 Evas_Object *gl = data; 3954 Evas_Object *gl = data;
3955 elm_object_scroll_item_loop_enabled_set(gl, elm_check_state_get(obj)); 3955 elm_object_scroll_item_loop_enabled_set(gl, elm_check_state_get(obj));
@@ -3966,7 +3966,7 @@ _gl_focus_focus_on_selection_set(Evas_Object *gl,
3966 3966
3967static void 3967static void
3968_gl_focus_focus_on_selection_changed_cb(void *data, Evas_Object *obj, 3968_gl_focus_focus_on_selection_changed_cb(void *data, Evas_Object *obj,
3969 void *event_info EINA_UNUSED) 3969 void *event_info EINA_UNUSED)
3970{ 3970{
3971 Eina_Bool nextstate = !elm_genlist_focus_on_selection_get(data); 3971 Eina_Bool nextstate = !elm_genlist_focus_on_selection_get(data);
3972 _gl_focus_focus_on_selection_set(data, obj, nextstate); 3972 _gl_focus_focus_on_selection_set(data, obj, nextstate);
@@ -4027,7 +4027,7 @@ _gl_focus_win_del_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED,
4027 4027
4028static void 4028static void
4029_gl_focus_item_select_on_focus_disable_changed_cb(void *data EINA_UNUSED, Evas_Object *obj, 4029_gl_focus_item_select_on_focus_disable_changed_cb(void *data EINA_UNUSED, Evas_Object *obj,
4030 void *event_info EINA_UNUSED) 4030 void *event_info EINA_UNUSED)
4031{ 4031{
4032 elm_config_item_select_on_focus_disabled_set(elm_check_state_get(obj)); 4032 elm_config_item_select_on_focus_disabled_set(elm_check_state_get(obj));
4033} 4033}
@@ -4228,14 +4228,14 @@ test_genlist_focus(void *data EINA_UNUSED,
4228 itc1 = elm_genlist_item_class_new(); 4228 itc1 = elm_genlist_item_class_new();
4229 itc1->item_style = "default"; 4229 itc1->item_style = "default";
4230 itc1->func.text_get = gl_focus_text_get; 4230 itc1->func.text_get = gl_focus_text_get;
4231 itc1->func.content_get = gl_focus_content_get; 4231 itc1->func.content_get = gl_focus_content_get;
4232 itc1->func.state_get = NULL; 4232 itc1->func.state_get = NULL;
4233 itc1->func.del = NULL; 4233 itc1->func.del = NULL;
4234 4234
4235 itc4 = elm_genlist_item_class_new(); 4235 itc4 = elm_genlist_item_class_new();
4236 itc4->item_style = "tree_effect"; 4236 itc4->item_style = "tree_effect";
4237 itc4->func.text_get = gl_focus_text_get; 4237 itc4->func.text_get = gl_focus_text_get;
4238 itc4->func.content_get = gl_focus_content_get; 4238 itc4->func.content_get = gl_focus_content_get;
4239 itc4->func.state_get = NULL; 4239 itc4->func.state_get = NULL;
4240 itc4->func.del = NULL; 4240 itc4->func.del = NULL;
4241 4241