tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
}
static void cleanup(void)
{
char buf[256];
int j = (int)data;
- snprintf(buf, sizeof(buf), "%c%c",
+ snprintf(buf, sizeof(buf), "%c%c",
'A' + ((j >> 4) & 0xf),
'a' + ((j ) & 0xf)
);
Evas_Object *gl = NULL;
Elm_Index_Item *it_idx = NULL;
int i = 0, j = 0;
-
+
const char *letter = NULL;
gl = elm_genlist_add(main_win);
- idx= elm_index_add(main_win);
+ idx= elm_index_add(main_win);
evas_object_show(gl);
- evas_object_show(idx);
+ evas_object_show(idx);
itci.item_style = "default";
itci.func.label_get = gli_label_get;
itci.func.icon_get = NULL;
}
if(i==0) it_gl=it;
j += 2;
- }
+ }
it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
char buf[32];
snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
elm_index_item_prepend_relative(idx, buf, it, it_gl);
elm_index_item_go(idx, 0);
- it_idx = elm_index_item_find(idx,(void*)it_gl);
+ it_idx = elm_index_item_find(idx,(void*)it_gl);
letter = elm_index_item_letter_get(it_idx);
if((strcmp(letter,"A")&&(strcmp(buf,"K")))) {
tet_infoline("elm_index_item_prepend_relative() failed in positive test case");
Evas_Object *gl = NULL;
Elm_Index_Item *it_idx = NULL;
int i = 0, j = 0;
-
+
gl = elm_genlist_add(main_win);
- idx= elm_index_add(main_win);
+ idx= elm_index_add(main_win);
evas_object_show(gl);
- evas_object_show(idx);
+ evas_object_show(idx);
itci.item_style = "default";
itci.func.label_get = gli_label_get;
itci.func.icon_get = NULL;
}
if(i==0) it_gl=it;
j += 2;
- }
+ }
it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
char buf[32];
snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
elm_index_item_prepend_relative(NULL, buf, it, it_gl);
elm_index_item_go(idx, 0);
- it_idx = elm_index_item_find(idx,(void*)it);
+ it_idx = elm_index_item_find(idx,(void*)it);
if(it_idx) {
tet_infoline("elm_index_item_prepend_relative() failed in negative test case");
tet_result(TET_FAIL);